compatibility.lua 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. -- add compatibility for ethereal nodes already in default game or name changed
  2. minetest.register_alias("ethereal:acacia_trunk", "default:acacia_tree")
  3. minetest.register_alias("ethereal:acacia_wood", "default:acacia_wood")
  4. minetest.register_alias("ethereal:fence_acacia", "default:fence_acacia_wood")
  5. minetest.register_alias("ethereal:fence_junglewood", "default:fence_junglewood")
  6. minetest.register_alias("ethereal:fence_pine", "default:fence_pine_wood")
  7. minetest.register_alias("ethereal:acacia_leaves", "default:acacia_leaves")
  8. minetest.register_alias("ethereal:pineleaves", "default:pine_needles")
  9. minetest.register_alias("ethereal:mushroom_craftingitem", "flowers:mushroom_brown")
  10. minetest.register_alias("ethereal:mushroom_plant", "flowers:mushroom_brown")
  11. minetest.register_alias("ethereal:mushroom_soup_cooked", "ethereal:mushroom_soup")
  12. minetest.register_alias("ethereal:mushroom_1", "flowers:mushroom_brown")
  13. minetest.register_alias("ethereal:mushroom_2", "flowers:mushroom_brown")
  14. minetest.register_alias("ethereal:mushroom_3", "flowers:mushroom_brown")
  15. minetest.register_alias("ethereal:mushroom_4", "flowers:mushroom_brown")
  16. minetest.register_alias("ethereal:strawberry_bush", "ethereal:strawberry_7")
  17. minetest.register_alias("ethereal:seed_strawberry", "ethereal:strawberry")
  18. for i = 1, 5 do
  19. minetest.register_alias("ethereal:wild_onion_" .. i, "ethereal:onion_" .. i)
  20. end
  21. minetest.register_alias("ethereal:onion_7", "ethereal:onion_4")
  22. minetest.register_alias("ethereal:onion_8", "ethereal:onion_5")
  23. minetest.register_alias("ethereal:wild_onion_7", "ethereal:onion_4")
  24. minetest.register_alias("ethereal:wild_onion_8", "ethereal:onion_5")
  25. minetest.register_alias("ethereal:wild_onion_craftingitem", "ethereal:wild_onion_plant")
  26. minetest.register_alias("ethereal:hearty_stew_cooked", "ethereal:hearty_stew")
  27. minetest.register_alias("ethereal:obsidian_brick", "default:obsidianbrick")
  28. minetest.register_alias("ethereal:crystal_topped_dirt", "ethereal:crystal_dirt")
  29. minetest.register_alias("ethereal:fiery_dirt_top", "ethereal:fiery_dirt")
  30. minetest.register_alias("ethereal:gray_dirt_top", "ethereal:gray_dirt")
  31. minetest.register_alias("ethereal:green_dirt_top", "default;dirt_with_grass")
  32. minetest.register_alias("ethereal:tree_sapling", "default:sapling")
  33. minetest.register_alias("ethereal:jungle_tree_sapling", "default:junglesapling")
  34. minetest.register_alias("ethereal:acacia_sapling", "default:acacia_sapling")
  35. minetest.register_alias("ethereal:pine_tree_sapling", "default:pine_sapling")
  36. -- check if pine bush stem exists, if not create alias
  37. if not minetest.registered_nodes["default:pine_bush_stem"] then
  38. minetest.register_alias("default:pine_bush_stem", "default:wood")
  39. end