Compare commits

...

5 Commits

Author SHA1 Message Date
migdyn 96bab3434a Add tapes to tapey group 2019-01-12 23:00:57 +01:00
migdyn e656a8e156 Add boxknife 2019-01-12 21:19:54 +01:00
migdyn 96cc14f1de Add recipes for most of the items 2019-01-08 23:21:33 +01:00
migdyn ecf0e985e3 Create depends.lua 2019-01-07 22:32:07 +01:00
migdyn 774170afd6 Change mesetapes renewability and orientation 2019-01-07 22:08:57 +01:00
5 changed files with 140 additions and 3 deletions

1
depends.lua Normal file
View File

@ -0,0 +1 @@
farming

142
init.lua
View File

@ -29,7 +29,7 @@ minetest.register_node("tapes:piece_spiketape_orange", {
},
inventory_image = "tapes_piece_spiketape_orange.png",
wield_image = "tapes_piece_spiketape_orange.png",
groups = {snappy = 3, oddly_breakable_by_hand = 1, not_in_creative_inventory = 1, connect_to_raillike = minetest.raillike_group("spiketape_orange")},
groups = {tapey = 2, snappy = 1, oddly_breakable_by_hand = 1, not_in_creative_inventory = 1, connect_to_raillike = minetest.raillike_group("spiketape_orange")},
selection_box = {
type = "fixed",
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
@ -53,7 +53,7 @@ minetest.register_node("tapes:piece_spiketape_black", {
},
inventory_image = "tapes_piece_spiketape_black.png",
wield_image = "tapes_piece_spiketape_black.png",
groups = {snappy = 3, oddly_breakable_by_hand = 1, not_in_creative_inventory = 1, connect_to_raillike = minetest.raillike_group("spiketape_black")},
groups = {tapey = 2, snappy = 1, oddly_breakable_by_hand = 1, not_in_creative_inventory = 1, connect_to_raillike = minetest.raillike_group("spiketape_black")},
selection_box = {
type = "fixed",
fixed = {-1/2, -1/2, -1/2, 1/2, -1/2+1/16, 1/2},
@ -97,7 +97,11 @@ minetest.register_node("tapes:piece_mesetape", {
groups = {cracky = 1, not_in_creative_inventory = 1},
liquid_viscosity = 30,
liquid_range = 0,
liquidtype = "source",
liquid_renewable = false,
liquid_alternative_flowing = "tapes:piece_mesetape",
liquid_alternative_source = "tapes:piece_mesetape",
selection_box = {
type = "wallmounted",
@ -110,8 +114,140 @@ minetest.register_tool("tapes:mesetape", {
description = "Mese Tape",
inventory_image = "tapes_mesetape.png",
on_use = function(itemstack, player, pointed_thing)
minetest.set_node(pointed_thing.above, {name = "tapes:piece_mesetape"})
minetest.set_node(pointed_thing.above, {name = "tapes:piece_mesetape", param2 = minetest.dir_to_wallmounted({x = 0, y = -1, z = 0})})
itemstack:add_wear(5000)
return itemstack
end
})
minetest.register_tool("tapes:boxknife", {
description = "Box Knife",
inventory_image = "tapes_boxknife.png",
tool_capabilities = {
full_punch_interval = 0.5,
max_drop_level=1,
groupcaps={
tapey = {times={[1]=3.50, [2]=1.90, [3]=1.00}, uses=3000},
snappy = {times={[1]=4.50, [2]=2.90, [3]=2.00}, uses=800},
fleshy = {times={[1]=2.50, [2]=1.50, [3]=0.50}, uses=1500},
},
damage_groups = {fleshy = 6, snappy = 4},
},
})
--CraftItems
minetest.register_craftitem("tapes:fabric_thin", {
description = "Thin Fabric",
inventory_image = "tapes_thinfabric.png",
})
minetest.register_craftitem("tapes:fabric_thick", {
description = "Thick Fabric",
inventory_image = "tapes_thickfabric.png",
})
minetest.register_craftitem("tapes:adhesive_bottle", {
description = "Adhesive",
inventory_image = "tapes_adhesive_normal_bottle.png",
})
minetest.register_craftitem("tapes:adhesive_strong_bottle", {
description = "Strong Adhesive",
inventory_image = "tapes_adhesive_strong_bottle.png",
})
minetest.register_craftitem("tapes:adhesive_mese_bottle", {
description = "Mese Adhesive",
inventory_image = "tapes_adhesive_mese_bottle.png",
})
--Crafts
minetest.register_craft({
output = "tapes:fabric_thin",
recipe = {
{"", "", ""},
{"farming:cotton", "farming:cotton", "farming:cotton"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:fabric_thick",
recipe = {
{"", "", ""},
{"tapes:fabric_thin", "tapes:fabric_thin", "tapes:fabric_thin"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:adhesive_bottle",
recipe = {
{"", "", ""},
{"group:leaves", "group:leaves", "group:leaves"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:adhesive_strong_bottle",
recipe = {
{"group:leaves", "group:leaves", "group:leaves"},
{"group:leaves", "group:leaves", "group:leaves"},
{"group:leaves", "group:leaves", "group:leaves"},
}
})
minetest.register_craft({
output = "tapes:adhesive_mese_bottle",
recipe = {
{"", "", ""},
{"tapes:adhesive_strong_bottle", "default:mese_crystal", "tapes:adhesive_strong_bottle"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:mesetape",
recipe = {
{"", "", ""},
{"tapes:adhesive_mese_bottle", "default:mese_block", "tapes:adhesive_mese_bottle"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:spiketape_orange",
recipe = {
{"", "dye:orange", ""},
{"tapes:adhesive_strong_bottle", "tapes:fabric_thick", "tapes:adhesive_strong_bottle"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:spiketape_black",
recipe = {
{"", "dye:black", ""},
{"tapes:adhesive_strong_bottle", "tapes:fabric_thick", "tapes:adhesive_strong_bottle"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:ducttape_black",
recipe = {
{"", "dye:black", ""},
{"tapes:adhesive_strong_bottle", "tapes:fabric_thin", "tapes:adhesive_strong_bottle"},
{"", "", ""},
}
})
minetest.register_craft({
output = "tapes:surgicaltape",
recipe = {
{"", "", ""},
{"tapes:adhesive_bottle", "tapes:fabric_thick", "tapes:adhesive_bottle"},
{"", "", ""},
}
})

View File

Before

Width:  |  Height:  |  Size: 497 B

After

Width:  |  Height:  |  Size: 497 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 400 B

After

Width:  |  Height:  |  Size: 433 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 534 B

After

Width:  |  Height:  |  Size: 718 B