diff --git a/changelog.txt b/changelog.txt index e09f341..679a6fc 100644 --- a/changelog.txt +++ b/changelog.txt @@ -5,6 +5,7 @@ next - changed name to "hovercraft_ad" - replaced calls to deprecated methods - fixed horizontal view & vertical position when attached for newer Minetest versions -- changed craft recipe to use mesecons_pistons - ensures there is room in inventory before picking up - hovercrafts can now be owned & unusable by non-owners +- made dependencies on default & wool optional (required for craft recipes) +- changed craft recipe to optionally use basic_materials:motor diff --git a/init.lua b/init.lua index 0164cd6..e0f7f09 100644 --- a/init.lua +++ b/init.lua @@ -56,8 +56,8 @@ hover:register_hovercraft(":hovercraft:hover_yellow" ,{ local ing = { - piston = core.registered_items['mesecons_pistons:piston_normal_off'] - and 'mesecons_pistons:piston_normal_off' or '', + motor = core.registered_items['basic_materials:motor'] + and 'basic_materials:motor' or '', block = 'default:steelblock', wool_base = 'wool:black', } @@ -67,7 +67,7 @@ if core.registered_items[ing.block] and core.registered_items[ing.wool_base] the minetest.register_craft({ output = 'hovercraft:hover_red', recipe = { - {'', ing.piston, ing.block}, + {'', ing.motor, ing.block}, {'wool:red', 'wool:red', 'wool:red'}, {ing.wool_base, ing.wool_base, ing.wool_base}, } @@ -78,7 +78,7 @@ if core.registered_items[ing.block] and core.registered_items[ing.wool_base] the minetest.register_craft({ output = 'hovercraft:hover_blue', recipe = { - {'', ing.piston, ing.block}, + {'', ing.motor, ing.block}, {'wool:blue', 'wool:blue', 'wool:blue'}, {ing.wool_base, ing.wool_base, ing.wool_base}, } @@ -89,7 +89,7 @@ if core.registered_items[ing.block] and core.registered_items[ing.wool_base] the minetest.register_craft({ output = 'hovercraft:hover_green', recipe = { - {'', ing.piston, ing.block}, + {'', ing.motor, ing.block}, {'wool:green', 'wool:green', 'wool:green'}, {ing.wool_base, ing.wool_base, ing.wool_base}, } @@ -100,7 +100,7 @@ if core.registered_items[ing.block] and core.registered_items[ing.wool_base] the minetest.register_craft({ output = 'hovercraft:hover_yellow', recipe = { - {'', ing.piston, ing.block}, + {'', ing.motor, ing.block}, {'wool:yellow', 'wool:yellow', 'wool:yellow'}, {ing.wool_base, ing.wool_base, ing.wool_base}, } diff --git a/mod.conf b/mod.conf index 6c8ddbe..556f20a 100644 --- a/mod.conf +++ b/mod.conf @@ -1,3 +1,3 @@ name = hovercraft_ad author = stu -optional_depends = default, wool, mesecons_pistons +optional_depends = default, wool, basic_materials