From 4641fecbe9415201ee077cf75ee87c886f9a7b55 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Thu, 7 Jun 2018 09:37:19 +0100 Subject: add recipe for big tree sapling --- leaves.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/leaves.lua b/leaves.lua index 6f7977f..3d8a36e 100644 --- a/leaves.lua +++ b/leaves.lua @@ -17,6 +17,12 @@ minetest.override_item("default:leaves", { walkable = ethereal.leafwalk, }) +-- ability to craft big tree sapling +minetest.register_craft({ + recipe = {{"default:sapling", "default:sapling", "default:sapling"}}, + output = "ethereal:big_tree_sapling" +}) + -- default jungle tree leaves minetest.override_item("default:jungleleaves", { drawtype = leaftype, -- cgit v1.2.3 From 7713e59f7b58579f93e4b69d0a23b64a64238301 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 25 Jul 2018 20:00:49 +0100 Subject: remove group:torch from ice melting abm --- water.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/water.lua b/water.lua index 70abbc8..d05f3db 100644 --- a/water.lua +++ b/water.lua @@ -74,7 +74,8 @@ minetest.register_abm({ }, neighbors = { "fire:basic_fire", "default:lava_source", "default:lava_flowing", - "default:furnace_active", "group:torch", "default:torch" + "default:furnace_active", "default:torch", "default:torch_wall", + "default:torch_ceiling" }, interval = 5, chance = 4, -- cgit v1.2.3 From 5947b2d16e1bfc37547d535f28b2013dee7b05eb Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 25 Jul 2018 20:02:48 +0100 Subject: remove group:torch from ice melting abm --- water.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/water.lua b/water.lua index d05f3db..9997ecf 100644 --- a/water.lua +++ b/water.lua @@ -65,7 +65,7 @@ minetest.register_abm({ end, }) --- If Heat Source near Ice or Snow then melt +-- If Heat Source near Ice or Snow then melt. minetest.register_abm({ label = "Ethereal melt snow/ice", nodenames = { -- cgit v1.2.3 From 1b8b6cb286ff42daeb243a259baa82a6f1b68d97 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Wed, 25 Jul 2018 20:07:23 +0100 Subject: add toolranks support for crystal sword --- crystal.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/crystal.lua b/crystal.lua index fdbdd17..42cb5ce 100644 --- a/crystal.lua +++ b/crystal.lua @@ -253,4 +253,9 @@ minetest.override_item("ethereal:shovel_crystal", { original_description = "Crystal Shovel", description = toolranks.create_description("Crystal Shovel", 0, 1), after_use = toolranks.new_afteruse}) + +minetest.override_item("ethereal:sword_crystal", { + original_description = "Crystal Sword", + description = toolranks.create_description("Crystal Sword", 0, 1), + after_use = toolranks.new_afteruse}) end -- cgit v1.2.3 From eb6fa03f0df9369635f33dfcdf37158c6d9d8b36 Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 12 Aug 2018 15:10:26 +0100 Subject: added food_berry group --- strawberry.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strawberry.lua b/strawberry.lua index 9f9b949..8098ca3 100644 --- a/strawberry.lua +++ b/strawberry.lua @@ -6,7 +6,7 @@ minetest.register_craftitem("ethereal:strawberry", { description = S("Strawberry"), inventory_image = "strawberry.png", wield_image = "strawberry.png", - groups = {food_strawberry = 1, flammable = 2}, + groups = {food_strawberry = 1, food_berry = 1, flammable = 2}, on_place = function(itemstack, placer, pointed_thing) return farming.place_seed(itemstack, placer, pointed_thing, "ethereal:strawberry_1") end, -- cgit v1.2.3 From 9dac31a106b10e72bb3a5e71f8cd5d8f69e5aafb Mon Sep 17 00:00:00 2001 From: TenPlus1 Date: Sun, 19 Aug 2018 10:03:41 +0100 Subject: change crystal ingot recipe --- README.md | 1 + crystal.lua | 67 ++++++++++++++++++++++++++++++++++++++++++++++++++++--------- 2 files changed, 58 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index d01542c..c0362ce 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,7 @@ Ethereal Mapgen mod for Minetest (works on all except v6) - Updating code to newer functions, requires Minetest 0.4.16 and above - Added food groups to be more compatible with other food mods - Bonemeal removed (use Bonemeal mod to replace https://forum.minetest.net/viewtopic.php?f=9&t=16446 ) + - Crystal Ingot recipe requires a bucket of water, unless you are using builtin_item mod where you can mix ingredients by dropping in a pool of water instead ### 1.23 diff --git a/crystal.lua b/crystal.lua index 42cb5ce..2b2868a 100644 --- a/crystal.lua +++ b/crystal.lua @@ -32,20 +32,67 @@ minetest.register_craftitem("ethereal:crystal_ingot", { wield_image = "crystal_ingot.png", }) -minetest.register_craft({ - output = "ethereal:crystal_ingot", - recipe = { - {"default:mese_crystal", "ethereal:crystal_spike"}, - {"ethereal:crystal_spike", "default:mese_crystal"}, - } -}) +if minetest.get_modpath("builtin_item") then + + minetest.override_item("ethereal:crystal_spike", { + + dropped_step = function(self, pos, dtime) + + self.ctimer = (self.ctimer or 0) + dtime + if self.ctimer < 5.0 then return end + self.ctimer = 0 + + if self.node_inside + and self.node_inside.name ~= "default:water_source" then + return + end + + local objs = core.get_objects_inside_radius(pos, 0.8) + + if not objs or #objs ~= 2 then return end + + local crystal, mese, ent = nil, nil, nil + + for k, obj in pairs(objs) do + + ent = obj:get_luaentity() + + if ent and ent.name == "__builtin:item" then + + if ent.itemstring == "default:mese_crystal 2" + and not mese then + + mese = obj + + elseif ent.itemstring == "ethereal:crystal_spike 2" + and not crystal then + + crystal = obj + end + end + end + + if mese and crystal then + + mese:remove() + crystal:remove() + + core.add_item(pos, "ethereal:crystal_ingot") + + return false + end + end + }) +end minetest.register_craft({ + type = "shapeless", output = "ethereal:crystal_ingot", recipe = { - {"ethereal:crystal_spike", "default:mese_crystal"}, - {"default:mese_crystal", "ethereal:crystal_spike"}, - } + "default:mese_crystal", "ethereal:crystal_spike", + "ethereal:crystal_spike", "default:mese_crystal", "bucket:bucket_water" + }, + replacements = { {"bucket:bucket_water", "bucket:bucket_empty"} } }) -- Crystal Block -- cgit v1.2.3