added random sounds and some little changes (little as you, little sussy baka)
This commit is contained in:
@@ -41,11 +41,18 @@ minetest.register_craftitem("amogus_items:amogus", {
|
||||
if pointed_thing.type == "node" then
|
||||
local pos = pointed_thing.above
|
||||
minetest.add_entity(pos, "amogus_entities:mini_crewmate")
|
||||
minetest.sound_play("amogus_sound", {
|
||||
pos = pos,
|
||||
gain = 1.0,
|
||||
max_hear_distance = 5
|
||||
})
|
||||
--minetest.sound_play("amogus_sound", {
|
||||
-- pos = pos,
|
||||
-- gain = 1.0,
|
||||
-- max_hear_distance = 5
|
||||
--})
|
||||
amogus_general.play_random_sound(
|
||||
"amogus_sound",
|
||||
pos,
|
||||
1.0, -- gain
|
||||
5, -- max_hear_distance
|
||||
2.0 -- pitch
|
||||
)
|
||||
end
|
||||
return itemstack
|
||||
end
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user