SUSSY LITTLE BAKA UWU

This commit is contained in:
2023-01-08 02:32:49 +01:00
parent 70ff62b1f2
commit 2f3febc349
3 changed files with 234 additions and 153 deletions

View File

@@ -2,13 +2,13 @@ minetest.register_craftitem("amogus_items:amogus", {
description = "Amogus",
inventory_image = "amogus_item.png",
on_use = function(itemstack, user)
minetest.sound_play("amogus_sound", {
pos = user:get_pos(),
gain = 1.0,
max_hear_distance = 5
})
end,
--on_use = function(itemstack, user)
-- minetest.sound_play("amogus_sound", {
-- pos = user:get_pos(),
-- gain = 1.0,
-- max_hear_distance = 5
-- })
--end,
--on_place = function(itemstack, placer, pointed_thing)
-- local pos = pointed_thing.above
@@ -24,6 +24,11 @@ minetest.register_craftitem("amogus_items:amogus", {
if pointed_thing.type == "node" then
local pos = pointed_thing.above
minetest.add_entity(pos, "amogus_entities:amogus")
minetest.sound_play("amogus_sound", {
pos = pos,
gain = 1.0,
max_hear_distance = 5
})
end
return itemstack
end