added random sounds and some little changes (little as you, little sussy baka)

This commit is contained in:
2023-01-31 22:14:39 +01:00
parent 97601cfe24
commit bc21a51a77
8 changed files with 91 additions and 38 deletions

View File

@@ -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