mirror of
https://github.com/cheapie/plasticbox.git
synced 2024-12-04 21:23:50 +01:00
Added plastic powder (formed by grinding plastic boxes or sheets. No non-technic recipe (or use) for it yet.)
This commit is contained in:
parent
13e4fc2b04
commit
81d0f28e29
@ -1 +1,2 @@
|
||||
homedecor
|
||||
technic?
|
||||
|
32
init.lua
32
init.lua
@ -130,6 +130,10 @@ minetest.register_node("plasticbox:plasticbox_yellow", {
|
||||
groups = {choppy=1, snappy=1, oddly_breakable_by_hand=1, level=1},
|
||||
sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
minetest.register_craftitem("plasticbox:plastic_powder", {
|
||||
image = "plastic_powder.png",
|
||||
description="Plastic Powder",
|
||||
})
|
||||
|
||||
|
||||
--Register craft for plain box
|
||||
@ -142,6 +146,34 @@ minetest.register_craft( {
|
||||
},
|
||||
})
|
||||
|
||||
--Register crafts for plastic powder
|
||||
|
||||
if minetest.get_modpath("technic") then
|
||||
local grinder_recipes = {
|
||||
{"plasticbox:plasticbox", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_black", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_blue", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_brown", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_cyan", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_darkgreen", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_darkgrey", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_green", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_grey", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_magenta", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_orange", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_pink", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_red", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_violet", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_white", "plasticbox:plastic_powder 2"},
|
||||
{"plasticbox:plasticbox_yellow", "plasticbox:plastic_powder 2"},
|
||||
{"homedecor:plastic_sheeting", "plasticbox:plastic_powder 1"}
|
||||
}
|
||||
for _, data in pairs(grinder_recipes) do
|
||||
technic.register_grinder_recipe({input=data[1], output=data[2]})
|
||||
end
|
||||
else
|
||||
end
|
||||
|
||||
--Register crafts for colored boxes
|
||||
minetest.register_craft({
|
||||
type = "shapeless",
|
||||
|
BIN
textures/plastic_powder.png
Normal file
BIN
textures/plastic_powder.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 234 B |
Loading…
Reference in New Issue
Block a user