SUSSY LITTLE BAKA UWU
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user