big changes

This commit is contained in:
2023-04-26 21:27:40 +02:00
parent dcaa8e5d63
commit 88b8e857cb
4 changed files with 79 additions and 33 deletions

View File

@@ -159,13 +159,28 @@ minetest.register_tool("amogus_items:lightsaber_green", {
minetest.register_craftitem("amogus_items:gold_ingot", {
description = "Gold Ingot",
inventory_image = "gold_ingot.png",
})minetest.register_craftitem("amogus_items:rock", {
tool_capabilities = {
damage_groups = {fleshy = 1.0},
full_punch_interval = 1.5,
},
})
minetest.register_craftitem("amogus_items:rock", {
description = "Rock",
inventory_image = "rocks.png",
tool_capabilities = {
damage_groups = {fleshy = 1.0},
full_punch_interval = 1.5,
},
})
minetest.register_craftitem("amogus_items:sussium_ingot", {
description = "Sussium Ingot",
inventory_image = "sussium_ingot.png",
tool_capabilities = {
damage_groups = {fleshy = 1.0},
full_punch_interval = 1.5,
},
})
--add theese items goldenpickaxe, stonepickaxe and allow them slowly break nodes and destroy it after 30 uses
@@ -327,7 +342,7 @@ minetest.register_tool("amogus_items:goldenshovel", {
groupcaps={
crumbly={times={[1]=1.0, [2]=0.8, [3]=0.6}, uses=30, maxlevel=2},
},
-- damage_groups = {fleshy=1.0},
damage_groups = {fleshy=1.0},
},
groups = {flammable = 2}
})
@@ -340,7 +355,7 @@ minetest.register_tool("amogus_items:sussiumshovel", {
groupcaps={
crumbly={times={[1]=0.8, [2]=0.6, [3]=0.35}, uses=30, maxlevel=2},
},
--damage_groups = {fleshy=1.0},
damage_groups = {fleshy=1.0},
},
groups = {flammable = 2}
})
@@ -366,27 +381,47 @@ minetest.register_tool("amogus_items:obsussian_hammer", {
minetest.register_craftitem("amogus_items:pcb", {
description = "PCB",
inventory_image = "PCB.png",
tool_capabilities = {
damage_groups = {fleshy = 1.0},
full_punch_interval = 2.0,
},
})
minetest.register_craftitem("amogus_items:capacitor", {
description = "Capacitor",
inventory_image = "capacitor.png",
tool_capabilities = {
damage_groups = {fleshy = 1.0},
full_punch_interval = 2.0,
},
})
minetest.register_craftitem("amogus_items:sugar", {
description = "Sugar",
inventory_image = "sugar.png",
on_use = minetest.item_eat(20),
tool_capabilities = {
damage_groups = {fleshy = 1.0},
full_punch_interval = 2.0,
},
})
minetest.register_craftitem("amogus_items:iron_ingot", {
description = "Iron Ingot",
inventory_image = "iron_ingot.png",
tool_capabilities = {
damage_groups = {fleshy = 1.0},
full_punch_interval = 1.5,
},
})
minetest.register_tool("amogus_items:dynamite", {
description = "dynamite",
inventory_image = "dynamite.png",
tool_capabilities = {
damage_groups = {fleshy = 1.0},
full_punch_interval = 1.5,
},
on_place = function(itemstack, placer, pointed_thing)
if pointed_thing.type == "node" then
@@ -590,6 +625,10 @@ minetest.register_craftitem("amogus_items:empty_bucket", {
description = (bucket_names_prefixes[math.random(1, #bucket_names_prefixes)] .. " " .. empty_bucket_names[math.random(1, #empty_bucket_names)]),
inventory_image = "empty_bucket.png",
groups = {tool = 1},
tool_capabilities = {
damage_groups = {fleshy = 1.0},
full_punch_interval = 1.0,
},
liquids_pointable = true,
on_use = function(itemstack, user, pointed_thing)
if pointed_thing.type == "object" then