Skip to content

Commit

Permalink
prepared new craftitem to turn the squeezer into a hydraulic press
Browse files Browse the repository at this point in the history
  • Loading branch information
theFox6 committed Jan 3, 2024
1 parent 93d2f25 commit 5bf83cf
Show file tree
Hide file tree
Showing 7 changed files with 30 additions and 2 deletions.
19 changes: 19 additions & 0 deletions items/crafting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,25 @@ minetest.register_craft({
}
})

minetest.register_craft({
output = "factory:piston",
recipe = {
{"group:wood", "group:wood", "group:wood"},
{"group:stone", "default:steel_ingot", "group:stone"},
{"group:stone", "", "group:stone"}
}
})

if minetest.get_modpath("mesecons_pistons") then
minetest.register_craft({
output = "mesecons_pistons:piston_normal_off",
recipe = {
{"factory:piston"},
{"group:mesecon_conductor_craftable"},
}
})
end

minetest.register_craft({
output = "factory:storage_tank",
recipe = {
Expand Down
6 changes: 6 additions & 0 deletions items/craftitems.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,11 @@ minetest.register_craftitem("factory:fan_blade", {
inventory_image = "factory_fan_blade.png"
})

minetest.register_craftitem("factory:piston", {
description = S("Piston"),
inventory_image = "factory_piston.png",
groups = { piston_craftable = 1 }
})

--TODO: tar from cooking tree sap
-- vim: et:ai:sw=2:ts=2:fdm=indent:syntax=lua
1 change: 1 addition & 0 deletions locale/factory.de.tr
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Compressed Clay=Komprimierter Lehm
Factory Lump=Fabrik Klumpen
Item Scanning Microchip=Gegenstand erkennender Mikrochip
Small Fanblade=Kleiner Ventilatorfluegel
Piston=Kolben
@1status: @2=@1Status: @2
@1charge: @2=@1Ladung: @2
Electronic Furnace=Elektro-Ofen
Expand Down
1 change: 1 addition & 0 deletions locale/factory.en.tr
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Tree Sap=Tree Sap
Compressed Clay=Compressed Clay
Factory Lump=Factory Lump
Item Scanning Microchip=Item Scanning Microchip
Piston=Piston
Small Fanblade=Small Fanblade
@1status: @2=@1status: @2
@1charge: @2=@1charge: @2
Expand Down
1 change: 1 addition & 0 deletions locale/factory.template.tr
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ Tree Sap=
Compressed Clay=
Factory Lump=
Item Scanning Microchip=
Piston=
Small Fanblade=
@1status: @2=
@1charge: @2=
Expand Down
4 changes: 2 additions & 2 deletions machines/crafting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -85,8 +85,8 @@ minetest.register_craft({
minetest.register_craft({
output = "factory:ind_squeezer",
recipe = {
{"default:glass", "default:stick", "default:glass"},
{"default:glass", "default:steel_ingot", "default:glass"},
{"default:glass", "factory:piston", "default:glass"},
{"default:glass", "", "default:glass"},
{"factory:small_gold_gear", "factory:ind_furnace", "factory:small_gold_gear"}
}
})
Expand Down
Binary file added textures/factory_piston.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 5bf83cf

Please sign in to comment.