SneakySNGamer wrote:This mod is nice, but the "Minecraft More Ores"adds 15 more ores.
How about adding more ores than the "Minecraft More Ores"? That'll be neat.
Calinou wrote:SneakySNGamer wrote:This mod is nice, but the "Minecraft More Ores"adds 15 more ores.
How about adding more ores than the "Minecraft More Ores"? That'll be neat.
Then you enter the “rainbow caves” syndrome, where you meet more ores than stone. This is no good.
SneakySNGamer wrote:Yes, but why do the ores spawn in a 3x3 cube? make it to a 2x2 and make the ores appear in the biome. That might be the solution.(Or add Obsidian Tools and all that.)
Calinou wrote:Then you enter the “rainbow caves” syndrome, where you meet more ores than stone. This is no good.
stormchaser3000 wrote:gitorious is now almost a deprecated website and is being replace by Gitlab.
diff --git a/init.lua b/init.lua
index 9a4cac1..3fd3417 100644
--- a/init.lua
+++ b/init.lua
@@ -52,9 +52,15 @@ local function hoe_on_use(itemstack, user, pointed_thing, uses)
-- Check if pointing at dirt:
if minetest.get_item_group(under.name, "soil") ~= 1 then return end
-
+
+ -- check if (wet) soil defined
+ local regN = minetest.registered_nodes
+ if regN[under.name].soil == nil or regN[under.name].soil.wet == nil or regN[under.name].soil.dry == nil then
+ return
+ end
+
-- Turn the node into soil, wear out item and play sound:
- minetest.set_node(pt.under, {name ="farming:soil"})
+ minetest.set_node(pt.under, {name = regN[under.name].soil.dry})
minetest.sound_play("default_dig_crumbly", {pos = pt.under, gain = 0.5})
itemstack:add_wear(65535 / (uses - 1))
return itemstack
2017-01-07 09:50:52: ERROR[Main]: ModError: Failed to load and run script from /home/minetest/.minetest/mods/moreores/init.lua:
2017-01-07 09:50:52: ERROR[Main]: /home/minetest/.minetest/mods/moreores/init.lua:31: attempt to call field 'node_sound_metal_defaults' (a nil value)
2017-01-07 09:50:52: ERROR[Main]: stack traceback:
2017-01-07 09:50:52: ERROR[Main]: /home/minetest/.minetest/mods/moreores/init.lua:31: in main chunk
Bodo wrote:Do I need to create a new world or will my current world be updated after I've installed the mod?
TenPlus1 wrote:You could fix it by changing node_sound_metal_defaults to node_sound_stone_defaults
Users browsing this forum: No registered users and 5 guests