2023-01-22 18:26:41 +01:00
|
|
|
minetest.register_item(":", { -- Hand
|
|
|
|
type = "none",
|
|
|
|
wield_image = "plumba.png",
|
|
|
|
wield_scale = {x=.3,y=2,z=2.5},
|
|
|
|
range = 5,
|
|
|
|
tool_capabilities = {
|
|
|
|
max_drop_level = 0,
|
|
|
|
full_punch_interval = 0.4,
|
|
|
|
|
|
|
|
|
|
|
|
damage_groups = {fleshy = 1, snappy = 8, cracky=8, choppy=8, crumbly=8},
|
|
|
|
}
|
|
|
|
})
|
2023-01-07 21:26:50 +01:00
|
|
|
minetest.register_craftitem("amogus_items:amogus", {
|
|
|
|
description = "Amogus",
|
|
|
|
inventory_image = "amogus_item.png",
|
2023-01-08 00:11:47 +01:00
|
|
|
|
2023-01-08 02:32:49 +01:00
|
|
|
--on_use = function(itemstack, user)
|
|
|
|
-- minetest.sound_play("amogus_sound", {
|
|
|
|
-- pos = user:get_pos(),
|
|
|
|
-- gain = 1.0,
|
|
|
|
-- max_hear_distance = 5
|
|
|
|
-- })
|
|
|
|
--end,
|
2023-01-08 00:11:47 +01:00
|
|
|
|
|
|
|
--on_place = function(itemstack, placer, pointed_thing)
|
|
|
|
-- local pos = pointed_thing.above
|
|
|
|
-- local dir = placer:get_look_dir()
|
|
|
|
-- local yaw = math.atan(dir.x/dir.z)
|
|
|
|
-- if dir.z > 0 then
|
|
|
|
-- yaw = yaw + math.pi
|
|
|
|
-- end
|
|
|
|
-- minetest.add_entity(pos, "amogus_entities:amogus", yaw)
|
|
|
|
--end
|
|
|
|
|
|
|
|
on_place = function(itemstack, placer, pointed_thing)
|
|
|
|
if pointed_thing.type == "node" then
|
|
|
|
local pos = pointed_thing.above
|
|
|
|
minetest.add_entity(pos, "amogus_entities:amogus")
|
2023-01-08 02:32:49 +01:00
|
|
|
minetest.sound_play("amogus_sound", {
|
|
|
|
pos = pos,
|
|
|
|
gain = 1.0,
|
|
|
|
max_hear_distance = 5
|
|
|
|
})
|
2023-01-08 00:11:47 +01:00
|
|
|
end
|
|
|
|
return itemstack
|
|
|
|
end
|
2023-01-08 14:04:18 +01:00
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_craftitem("amogus_items:sprite", {
|
|
|
|
description = "Sprite",
|
|
|
|
inventory_image = "sprite.png",
|
|
|
|
on_use = minetest.item_eat(1),
|
|
|
|
})
|
|
|
|
minetest.register_craftitem("amogus_items:coke", {
|
|
|
|
description = "Coke",
|
|
|
|
inventory_image = "coke.png",
|
|
|
|
on_use = minetest.item_eat(1),
|
|
|
|
})
|
|
|
|
minetest.register_craftitem("amogus_items:fanta", {
|
|
|
|
description = "Fanta",
|
|
|
|
inventory_image = "fanta.png",
|
|
|
|
on_use = minetest.item_eat(1),
|
|
|
|
})
|
|
|
|
minetest.register_craftitem("amogus_items:tomato", {
|
|
|
|
description = "Tomato",
|
|
|
|
inventory_image = "tomato.png",
|
|
|
|
on_use = minetest.item_eat(1),
|
|
|
|
})
|
|
|
|
minetest.register_craftitem("amogus_items:water", {
|
|
|
|
inventory_image = "water.png",
|
|
|
|
on_use = minetest.item_eat(1),
|
|
|
|
})
|
2023-01-09 02:35:45 +01:00
|
|
|
|
2023-01-08 15:29:39 +01:00
|
|
|
minetest.register_tool("amogus_items:lightsaber_blue", {
|
|
|
|
description = "Blue Lightsaber",
|
|
|
|
inventory_image = "lightsaber_blue.png",
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 0.1,
|
|
|
|
max_drop_level=3,
|
|
|
|
groupcaps={
|
|
|
|
snappy={times={[1]=0.1, [2]=0.1, [3]=0.1}, uses=0, maxlevel=3},
|
|
|
|
},
|
|
|
|
damage_groups = {fleshy=10},
|
|
|
|
},
|
|
|
|
sound = {breaks = "amogus_sound"},
|
|
|
|
})
|
|
|
|
|
|
|
|
minetest.register_tool("amogus_items:lightsaber_red", {
|
|
|
|
description = "Red Lightsaber",
|
|
|
|
inventory_image = "lightsaber_red.png",
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 0.1,
|
|
|
|
max_drop_level=3,
|
|
|
|
groupcaps={
|
|
|
|
snappy={times={[1]=0.1, [2]=0.1, [3]=0.1}, uses=0, maxlevel=3},
|
|
|
|
},
|
|
|
|
damage_groups = {fleshy=10},
|
|
|
|
},
|
|
|
|
sound = {breaks = "amogus_sound"},
|
|
|
|
})
|
2023-01-08 14:04:18 +01:00
|
|
|
|
2023-01-08 15:29:39 +01:00
|
|
|
minetest.register_tool("amogus_items:lightsaber_green", {
|
|
|
|
description = "Green Lightsaber",
|
|
|
|
inventory_image = "lightsaber_green.png",
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 0.1,
|
|
|
|
max_drop_level=3,
|
|
|
|
groupcaps={
|
|
|
|
snappy={times={[1]=0.1, [2]=0.1, [3]=0.1}, uses=0, maxlevel=3},
|
|
|
|
},
|
|
|
|
damage_groups = {fleshy=10},
|
|
|
|
},
|
|
|
|
sound = {breaks = "amogus_sound"},
|
2023-01-09 02:35:45 +01:00
|
|
|
})
|
2023-01-12 18:13:21 +01:00
|
|
|
|
2023-01-12 19:03:24 +01:00
|
|
|
-- add theese items : goldenpickaxe, wooden plank, gold_ingot, sussium_ingot
|
|
|
|
minetest.register_craftitem("amogus_items:wooden_plank", {
|
|
|
|
description = "Wooden Plank",
|
2023-01-22 18:26:41 +01:00
|
|
|
inventory_image = "wood.png",
|
2023-01-12 19:03:24 +01:00
|
|
|
})
|
|
|
|
minetest.register_craftitem("amogus_items:gold_ingot", {
|
|
|
|
description = "Gold Ingot",
|
|
|
|
inventory_image = "gold_ingot.png",
|
|
|
|
})
|
|
|
|
minetest.register_craftitem("amogus_items:sussium_ingot", {
|
|
|
|
description = "Sussium Ingot",
|
|
|
|
inventory_image = "sussium_ingot.png",
|
|
|
|
})
|
2023-01-22 18:26:41 +01:00
|
|
|
--add theese items goldenpickaxe, stonepickaxe and allow them slowly break nodes and destroy it after 30 uses
|
2023-01-12 19:03:24 +01:00
|
|
|
minetest.register_tool("amogus_items:goldenpickaxe", {
|
|
|
|
description = "Golden Pickaxe",
|
2023-01-12 22:24:20 +01:00
|
|
|
inventory_image = "goldenpick.png",
|
2023-01-12 19:03:24 +01:00
|
|
|
tool_capabilities = {
|
2023-01-22 18:26:41 +01:00
|
|
|
full_punch_interval = 1.0,
|
|
|
|
max_drop_level=1,
|
2023-01-12 19:03:24 +01:00
|
|
|
groupcaps={
|
2023-01-22 18:26:41 +01:00
|
|
|
cracky={times={[1]=2.0, [2]=1.0, [3]=0.50}, uses=30, maxlevel=1},
|
2023-01-12 19:03:24 +01:00
|
|
|
},
|
2023-01-22 18:26:41 +01:00
|
|
|
damage_groups = {fleshy=2},
|
2023-01-12 19:03:24 +01:00
|
|
|
},
|
2023-01-22 18:26:41 +01:00
|
|
|
sound = {breaks = "default_tool_breaks"},
|
2023-01-12 19:03:24 +01:00
|
|
|
})
|
2023-01-22 18:26:41 +01:00
|
|
|
minetest.register_tool("amogus_items:stonepickaxe", {
|
|
|
|
description = "Stone Pickaxe",
|
|
|
|
inventory_image = "stone_pick.png",
|
|
|
|
tool_capabilities = {
|
|
|
|
full_punch_interval = 1.0,
|
|
|
|
max_drop_level=1,
|
|
|
|
groupcaps={
|
|
|
|
cracky={times={[1]=2.0, [2]=1.0, [3]=0.50}, uses=30, maxlevel=1},
|
|
|
|
},
|
|
|
|
damage_groups = {fleshy=2},
|
|
|
|
},
|
|
|
|
sound = {breaks = "default_tool_breaks"},
|
|
|
|
})
|