diff options
-rw-r--r-- | craft_overrides/init.lua | 10 | ||||
-rw-r--r-- | craft_overrides/mod.conf | 2 | ||||
-rw-r--r-- | permflightpotion/init.lua | 23 | ||||
-rw-r--r-- | permflightpotion/mod.conf | 3 |
4 files changed, 37 insertions, 1 deletions
diff --git a/craft_overrides/init.lua b/craft_overrides/init.lua index 545db5d..f42f86f 100644 --- a/craft_overrides/init.lua +++ b/craft_overrides/init.lua @@ -82,3 +82,13 @@ techage.recipes.add("ta4_doser", { "techage:plastic_granules 2", }, }) + +local plastic = "basic_materials:plastic_sheet" +core.register_craft({ + output = "plasticbox:plasticbox 4", + recipe = { + {plastic,plastic,plastic}, + {plastic,plastic,plastic}, + {plastic,plastic,plastic}, + }, +}) diff --git a/craft_overrides/mod.conf b/craft_overrides/mod.conf index 36e9de4..e276885 100644 --- a/craft_overrides/mod.conf +++ b/craft_overrides/mod.conf @@ -1,3 +1,3 @@ name = craft_overrides description = Craft recipe overrides for cheapie's techage survival server -depends = replacer,travelnet,underch,techage,bonemeal,compost +depends = replacer,travelnet,underch,techage,bonemeal,compost,plasticbox diff --git a/permflightpotion/init.lua b/permflightpotion/init.lua new file mode 100644 index 0000000..253277d --- /dev/null +++ b/permflightpotion/init.lua @@ -0,0 +1,23 @@ +core.register_node("permflightpotion:permflightpotion",{ + description = "Permanent Flight Potion", + drawtype = "plantlike", + tiles = {"ethereal_flight_potion.png"}, + inventory_image = "ethereal_flight_potion.png", + wield_image = "ethereal_flight_potion.png", + paramtype = "light", + sunlight_propagates = true, + selection_box = { + type = "fixed", fixed = {-0.2, -0.37, -0.2, 0.2, 0.31, 0.2} + }, + groups = {dig_immediate = 3, vessel = 1}, + sounds = default.node_sound_glass_defaults(), + on_use = function(stack,player) + local name = player:get_player_name() + local privs = core.get_player_privs(name) + if privs.fly then return end + privs.fly = true + core.set_player_privs(name,privs) + stack:take_item(1) + return stack + end, +}) diff --git a/permflightpotion/mod.conf b/permflightpotion/mod.conf new file mode 100644 index 0000000..8759c40 --- /dev/null +++ b/permflightpotion/mod.conf @@ -0,0 +1,3 @@ +name = permflightpotion +depends = ethereal +description = Flight potion with no expiration |