diff options
author | orwell96 <orwell@bleipb.de> | 2021-02-19 18:46:03 +0100 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2021-02-19 18:46:03 +0100 |
commit | 30076f5ce33610c4c809500e1aa57efb066e6a8e (patch) | |
tree | a745be07ca3c36d3e9eefa0e8b86c7cf33c82429 | |
parent | 04c78373f1db0b011557b92cd6fb58268cbeefe4 (diff) | |
download | advtrains-30076f5ce33610c4c809500e1aa57efb066e6a8e.tar.gz advtrains-30076f5ce33610c4c809500e1aa57efb066e6a8e.tar.bz2 advtrains-30076f5ce33610c4c809500e1aa57efb066e6a8e.zip |
Add some missing craft recipes
- LuaATC remains non-craftable for now (elevated privs necessary anyway)
- Some crafts altered from dario's proposal
Co-authored-by: W3RQ01 <dario23@linux-forks.de>
-rw-r--r-- | advtrains/crafting.lua | 26 | ||||
-rw-r--r-- | advtrains_interlocking/tcb_ts_ui.lua | 10 | ||||
-rw-r--r-- | advtrains_signals_ks/init.lua | 39 | ||||
-rw-r--r-- | advtrains_train_industrial/init.lua | 42 | ||||
-rw-r--r-- | advtrains_train_japan/init.lua | 22 | ||||
-rw-r--r-- | advtrains_train_track/init.lua | 25 |
6 files changed, 162 insertions, 2 deletions
diff --git a/advtrains/crafting.lua b/advtrains/crafting.lua index cb0813c..7626d55 100644 --- a/advtrains/crafting.lua +++ b/advtrains/crafting.lua @@ -20,6 +20,32 @@ minetest.register_craft({ {'', '', 'default:steel_ingot'}, }, }) +--Wallmounted Signal +minetest.register_craft({ + output = 'advtrains:signal_wall_r_off 2', + recipe = { + {'dye:red', 'default:steel_ingot', 'default:steel_ingot'}, + {'', 'default:steel_ingot', ''}, + {'dye:dark_green', 'default:steel_ingot', 'default:steel_ingot'}, + }, +}) + +--Wallmounted Signals can be converted into every orientation by shapeless crafting +minetest.register_craft({ + output = 'advtrains:signal_wall_l_off', + type = "shapeless", + recipe = {'advtrains:signal_wall_r_off'}, +}) +minetest.register_craft({ + output = 'advtrains:signal_wall_t_off', + type = "shapeless", + recipe = {'advtrains:signal_wall_l_off'}, +}) +minetest.register_craft({ + output = 'advtrains:signal_wall_r_off', + type = "shapeless", + recipe = {'advtrains:signal_wall_t_off'}, +}) --trackworker minetest.register_craft({ diff --git a/advtrains_interlocking/tcb_ts_ui.lua b/advtrains_interlocking/tcb_ts_ui.lua index 3952f91..38d4453 100644 --- a/advtrains_interlocking/tcb_ts_ui.lua +++ b/advtrains_interlocking/tcb_ts_ui.lua @@ -118,6 +118,16 @@ minetest.register_node("advtrains_interlocking:tcb_node", { end, }) + +-- Crafting +minetest.register_craft({ + output = 'advtrains_interlocking:tcb_node 4', + recipe = { + {'mesecons:wire_00000000_off', 'basic_materials:ic', 'mesecons:wire_00000000_off'}, + }, +}) + + minetest.register_on_punchnode(function(pos, node, player, pointed_thing) local pname = player:get_player_name() if not minetest.check_player_privs(pname, "interlocking") then diff --git a/advtrains_signals_ks/init.lua b/advtrains_signals_ks/init.lua index 08bbb75..1c60a0e 100644 --- a/advtrains_signals_ks/init.lua +++ b/advtrains_signals_ks/init.lua @@ -199,7 +199,7 @@ for _, rtab in ipairs({ save_in_at_nodedb = 1, not_in_creative_inventory = (rtab.ici and prts.ici) and 0 or 1, }, - drop = "advtrains_signals_ks:sign_e_0", + drop = "advtrains_signals_ks:sign_8_0", inventory_image = "advtrains_signals_ks_sign_8.png", sounds = default.node_sound_stone_defaults(), advtrains = { @@ -241,3 +241,40 @@ for _, rtab in ipairs({ advtrains.trackplacer.add_worked("advtrains_signals_ks:mast","mast", "_"..rot) end +-- Crafting + +minetest.register_craft({ + output = "advtrains_signals_ks:hs_danger_0 2", + recipe = { + {'default:steel_ingot', 'dye:red', 'default:steel_ingot'}, + {'dye:yellow', 'default:steel_ingot', 'dye:dark_green'}, + {'default:steel_ingot', 'advtrains_signals_ks:mast_mast_0', 'default:steel_ingot'}, + }, +}) + +minetest.register_craft({ + output = "advtrains_signals_ks:mast_mast_0 10", + recipe = { + {'default:steel_ingot'}, + {'dye:cyan'}, + {'default:steel_ingot'}, + }, +}) + +minetest.register_craft({ + output = "advtrains_signals_ks:ra_danger_0 2", + recipe = { + {'dye:red', 'dye:white', 'dye:red'}, + {'dye:white', 'default:steel_ingot', 'default:steel_ingot'}, + {'default:steel_ingot', 'advtrains_signals_ks:mast_mast_0', 'default:steel_ingot'}, + }, +}) + +minetest.register_craft({ + output = "advtrains_signals_ks:sign_8_0 2", + recipe = { + {'basic_materials:plastic_sheet', 'dye:black'}, + {'default:stick', ''}, + {'default:stick', ''}, + }, +}) diff --git a/advtrains_train_industrial/init.lua b/advtrains_train_industrial/init.lua index beec5b3..dde7d83 100644 --- a/advtrains_train_industrial/init.lua +++ b/advtrains_train_industrial/init.lua @@ -105,3 +105,45 @@ advtrains.register_wagon("wagon_wood", { box=8*3, }, }, S("Industrial wood wagon"), "advtrains_wagon_wood_inv.png") + +-- Craftings + +minetest.register_craft({ + output = 'advtrains:engine_industrial', + recipe = { + {'default:steelblock', 'default:steelblock', 'default:steelblock'}, + {'advtrains:driver_cab', 'default:steelblock', 'default:steelblock'}, + {'advtrains:wheel', '', 'advtrains:wheel'}, + }, +}) + +--Engine Industrial Big +minetest.register_craft({ + output = 'advtrains:engine_industrial_big', + recipe = { + {'default:glass', 'default:steelblock', 'default:steelblock'}, + {'advtrains:driver_cab', 'default:steelblock', 'default:steelblock'}, + {'advtrains:wheel', 'advtrains:wheel', 'advtrains:wheel'}, + }, +}) + + +--Industrial tank wagon +minetest.register_craft({ + output = 'advtrains:wagon_tank', + recipe = { + {'default:steelblock', 'default:steel_ingot', 'default:steelblock'}, + {'advtrains:steelblock', '', 'default:steelblock'}, + {'advtrains:wheel', 'default:steelblock', 'advtrains:wheel'}, + }, +}) + +--Industrial wood wagon +minetest.register_craft({ + output = 'advtrains:wagon_wood', + recipe = { + {'default:steel_ingot', '', 'default:steel_ingot'}, + {'advtrains:steelblock', 'default:steelblock', 'default:steelblock'}, + {'advtrains:wheel', '', 'advtrains:wheel'}, + }, +}) diff --git a/advtrains_train_japan/init.lua b/advtrains_train_japan/init.lua index 1aa2771..a784845 100644 --- a/advtrains_train_japan/init.lua +++ b/advtrains_train_japan/init.lua @@ -138,3 +138,25 @@ advtrains.register_wagon("wagon_japan", { drops={"default:steelblock 4"}, }, S("Japanese Train Wagon"), "advtrains_wagon_japan_inv.png") +-- Crafting + +minetest.register_craft({ + output = 'advtrains:engine_japan', + recipe = { + {'default:steelblock', 'default:steelblock', ''}, + {'xpanes:pane_flat', 'default:steelblock', 'xpanes:pane_flat'}, + {'advtrains:wheel', 'advtrains:wheel', 'advtrains:wheel'}, + }, +}) + +minetest.register_craft({ +output = 'advtrains:wagon_japan', + recipe = { + {'default:steelblock', 'default:steelblock', 'default:steelblock'}, + {'xpanes:pane_flat', 'default:steelblock', 'xpanes:pane_flat'}, + {'advtrains:wheel', '', 'advtrains:wheel'}, + }, +}) + + + diff --git a/advtrains_train_track/init.lua b/advtrains_train_track/init.lua index 7f1f73c..78d1392 100644 --- a/advtrains_train_track/init.lua +++ b/advtrains_train_track/init.lua @@ -298,6 +298,29 @@ advtrains.register_tracks("default", { end }, advtrains.trackpresets.t_30deg_straightonly) +minetest.register_craft({ + type="shapeless", + output = 'advtrains:dtrack_load_placer', + recipe = { + "advtrains:dtrack_placer", + "basic_materials:ic", + "default:chest" + }, +}) +minetest.register_craft({ + type="shapeless", + output = 'advtrains:dtrack_unload_placer', + recipe = { + "advtrains:dtrack_load_placer", + }, +}) +minetest.register_craft({ + type="shapeless", + output = 'advtrains:dtrack_load_placer', + recipe = { + "advtrains:dtrack_unload_placer", + }, +}) if mesecon then @@ -361,7 +384,7 @@ if mesecon then } end }, advtrains.ap.t_30deg_straightonly_noplacer) - minetest.register_craft({ +minetest.register_craft({ type="shapeless", output = 'advtrains:dtrack_detector_off_placer', recipe = { |