Craftings, Randomly spawning amonguses and more
This commit is contained in:
@@ -1,15 +1,17 @@
|
||||
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},
|
||||
}
|
||||
type = "none",
|
||||
wield_image = "coke.png",
|
||||
wield_scale = {x=.3,y=2,z=2.5},
|
||||
range = 5,
|
||||
tool_capabilities = {
|
||||
max_drop_level = 0,
|
||||
full_punch_interval = 0.4,
|
||||
groupcaps = {
|
||||
choppy = {times = {[1] = 2, [2] = 1.5, [3] = 1.0}, uses = 20, maxlevel = 1},
|
||||
crumbly = {times = {[1] = 0.5, [2] = 0.3, [3] = 0.2}, uses = 20, maxlevel = 1},
|
||||
},
|
||||
damage_groups = {fleshy = 1, snappy = 1, cracky=1},
|
||||
}
|
||||
})
|
||||
minetest.register_craftitem("amogus_items:amogus", {
|
||||
description = "Amogus",
|
||||
@@ -122,25 +124,69 @@ minetest.register_craftitem("amogus_items:wooden_plank", {
|
||||
minetest.register_craftitem("amogus_items:gold_ingot", {
|
||||
description = "Gold Ingot",
|
||||
inventory_image = "gold_ingot.png",
|
||||
})minetest.register_craftitem("amogus_items:rock", {
|
||||
description = "Rock",
|
||||
inventory_image = "rocks.png",
|
||||
})
|
||||
minetest.register_craftitem("amogus_items:sussium_ingot", {
|
||||
description = "Sussium Ingot",
|
||||
inventory_image = "sussium_ingot.png",
|
||||
})
|
||||
--add theese items goldenpickaxe, stonepickaxe and allow them slowly break nodes and destroy it after 30 uses
|
||||
minetest.register_tool("amogus_items:goldenpickaxe", {
|
||||
description = "Golden Pickaxe",
|
||||
inventory_image = "goldenpick.png",
|
||||
minetest.register_tool("amogus_items:goldenplumba", {
|
||||
description = "Golden Plumba",
|
||||
inventory_image = "goldenplumba.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},
|
||||
full_punch_interval = 0.1,
|
||||
max_drop_level = 3,
|
||||
groupcaps = {
|
||||
unbreakable = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
crumbly = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
snappy = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
choppy = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
cracky = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
crumbly = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
cracky = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy=2},
|
||||
damage_groups = {fleshy = 10},
|
||||
},
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if pointed_thing.type == "node" then
|
||||
minetest.node_dig(pointed_thing.under, minetest.get_node(pointed_thing.under), user)
|
||||
end
|
||||
itemstack:add_wear(65535/10)
|
||||
return itemstack
|
||||
end,
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
|
||||
minetest.register_tool("amogus_items:susplumba", {
|
||||
description = "Sus Plumba",
|
||||
inventory_image = "plumba.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 0.1,
|
||||
max_drop_level = 3,
|
||||
groupcaps = {
|
||||
unbreakable = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
crumbly = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
snappy = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
choppy = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
cracky = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
crumbly = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
cracky = {times={[1] = 0, [2] = 0, [3] = 0}, uses = 10, maxlevel=3},
|
||||
},
|
||||
damage_groups = {fleshy = 10},
|
||||
},
|
||||
on_use = function(itemstack, user, pointed_thing)
|
||||
if pointed_thing.type == "node" then
|
||||
minetest.node_dig(pointed_thing.under, minetest.get_node(pointed_thing.under), user)
|
||||
end
|
||||
itemstack:add_wear(65535/40)
|
||||
return itemstack
|
||||
end,
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
|
||||
minetest.register_tool("amogus_items:stonepickaxe", {
|
||||
description = "Stone Pickaxe",
|
||||
inventory_image = "stone_pick.png",
|
||||
@@ -153,4 +199,18 @@ minetest.register_tool("amogus_items:stonepickaxe", {
|
||||
damage_groups = {fleshy=2},
|
||||
},
|
||||
sound = {breaks = "default_tool_breaks"},
|
||||
})
|
||||
})
|
||||
|
||||
minetest.register_tool("amogus_items:goldenaxe", {
|
||||
description = "Golden Axe",
|
||||
inventory_image = "goldenaxe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
max_drop_level=1,
|
||||
groupcaps={
|
||||
choppy={times={[1]=2.50, [2]=1.40, [3]=1.00}, uses=30, maxlevel=2},
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
},
|
||||
groups = {flammable = 2}
|
||||
})
|
||||
|
||||
|
Before Width: | Height: | Size: 149 B After Width: | Height: | Size: 149 B |
Binary file not shown.
|
Before Width: | Height: | Size: 142 B After Width: | Height: | Size: 182 B |
Reference in New Issue
Block a user