2020-09-13 21:32:55 +02:00
--[[
This file contains sapling alias definitions for a number of different mods .
If your mod is not listed here , please open a pull request to add it : - )
This mod ' s repository can be found here: https://github.com/sbrl/Minetest-WorldEditAdditions
Adding support for your mod is a 2 step process :
1. Update this file with your definitions
2. Update depends.txt to add a soft dependency on your mod . Find that file here : https : // github.com / sbrl / Minetest - WorldEditAdditions / blob / master / worldeditadditions / depends.txt - for example , add something line " my_awesome_mod? " ( note the question mark at the end ) on a new line ( without quotes ) .
Alternatively , you can register support in your mod directly . Do that by adding a soft dependency on worldeditadditions , and then calling worldeditadditions.normalise_saplingname if worldeditadditions is loaded .
] ] --
-- worldeditadditions.register_sapling_alias("")
if minetest.get_modpath ( " default " ) then
worldeditadditions.register_sapling_alias_many ( {
2021-08-12 02:09:24 +02:00
{ " default:sapling " , " apple " } ,
2020-09-13 21:32:55 +02:00
{ " default:bush_sapling " , " bush " } ,
{ " default:pine_sapling " , " pine " } ,
{ " default:pine_bush_sapling " , " pine_bush " } ,
{ " default:aspen_sapling " , " aspen " } ,
{ " default:junglesapling " , " jungle " } ,
{ " default:emergent_jungle_sapling " , " jungle_emergent " } ,
{ " default:acacia_sapling " , " acacia " } ,
{ " default:acacia_bush_sapling " , " acacia_bush " } ,
2020-09-14 02:19:15 +02:00
{ " default:blueberry_bush_sapling " , " blueberry_bush " } ,
-- { "default:large_cactus_seedling", "cactus" } -- Can't be bonemealed yet, but I'd guess it will be implemented eventually. It's not in the sapling category, so we won't detect it for bonemealing anyway
2020-09-13 21:32:55 +02:00
} )
end
if minetest.get_modpath ( " moretrees " ) then
worldeditadditions.register_sapling_alias_many ( {
{ " moretrees:spruce_sapling_ongen " , " spruce " } ,
2020-09-14 02:19:15 +02:00
{ " moretrees:rubber_tree_sapling_ongen " , " rubber " } ,
2020-09-13 21:32:55 +02:00
{ " moretrees:beech_sapling_ongen " , " beech " } ,
{ " moretrees:jungletree_sapling_ongen " , " jungle_moretrees " } ,
{ " moretrees:fir_sapling_ongen " , " fir " } ,
2020-09-20 14:28:54 +02:00
{ " moretrees:willow_sapling_ongen " , " willow_moretrees " } ,
2020-09-13 21:32:55 +02:00
{ " moretrees:poplar_sapling_ongen " , " poplar " } ,
{ " moretrees:poplar_small_sapling_ongen " , " poplar_small " } ,
2021-08-12 02:09:24 +02:00
{ " moretrees:apple_tree_sapling_ongen " , " apple_moretrees " } ,
2020-09-20 14:28:54 +02:00
{ " moretrees:birch_sapling_ongen " , " birch_moretrees " } ,
2020-09-14 02:19:15 +02:00
{ " moretrees:palm_sapling_ongen " , " palm_moretrees " } ,
2020-09-13 21:32:55 +02:00
{ " moretrees:date_palm_sapling_ongen " , " palm_date " } ,
{ " moretrees:sequoia_sapling_ongen " , " sequoia " } ,
{ " moretrees:oak_sapling_ongen " , " oak_moretrees " } ,
{ " moretrees:cedar_sapling_ongen " , " cedar " }
} )
end
2020-09-20 14:28:54 +02:00
if minetest.get_modpath ( " ethereal " ) then
worldeditadditions.register_sapling_alias_many ( {
{ " ethereal:mushroom_sapling " , " mushroom " } ,
{ " ethereal:sakura_sapling " , " sakura " } ,
{ " ethereal:birch_sapling " , " birch " } ,
{ " ethereal:yellow_tree_sapling " , " yellow_tree " } ,
{ " ethereal:willow_sapling " , " willow_ethereal " } ,
{ " ethereal:redwood_sapling " , " redwood " } ,
{ " ethereal:palm_sapling " , " palm_ethereal " } ,
{ " ethereal:frost_tree_sapling " , " frost " } ,
{ " ethereal:banana_tree_sapling " , " banana " } ,
{ " ethereal:orange_tree_sapling " , " orange " } ,
{ " ethereal:bamboo_sprout " , " bamboo_ethereal " } ,
{ " ethereal:big_tree_sapling " , " big " }
} )
end
2020-09-13 21:32:55 +02:00
-- ██████ ██████ ██████ ██ ████████ ██████ ███████ ███████ ███████
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
-- ██ ██ ██ ██ ██ ██ ██ ██████ █████ █████ ███████
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
-- ██████ ██████ ██████ ███████ ███████ ██ ██ ██ ███████ ███████ ███████
if minetest.get_modpath ( " lemontree " ) then
2020-09-14 02:19:15 +02:00
worldeditadditions.register_sapling_alias ( " lemontree:sapling " , " lemon " )
2020-09-13 21:32:55 +02:00
end
if minetest.get_modpath ( " pineapple " ) then
worldeditadditions.register_sapling_alias ( " pineapple:sapling " , " pineapple " )
end
if minetest.get_modpath ( " baldcypress " ) then
worldeditadditions.register_sapling_alias ( " baldcypress:sapling " , " baldcypress " )
end
if minetest.get_modpath ( " bamboo " ) then
worldeditadditions.register_sapling_alias ( " bamboo:sapling " , " bamboo " )
end
if minetest.get_modpath ( " birch " ) then
worldeditadditions.register_sapling_alias ( " birch:sapling " , " birch " )
end
if minetest.get_modpath ( " cherrytree " ) then
2020-09-14 02:19:15 +02:00
worldeditadditions.register_sapling_alias ( " cherrytree:sapling " , " cherry " )
2020-09-13 21:32:55 +02:00
end
if minetest.get_modpath ( " clementinetree " ) then
2020-09-14 02:19:15 +02:00
worldeditadditions.register_sapling_alias ( " clementinetree:sapling " , " clementine " )
2020-09-13 21:32:55 +02:00
end
if minetest.get_modpath ( " ebony " ) then
worldeditadditions.register_sapling_alias ( " ebony:sapling " , " ebony " )
end
if minetest.get_modpath ( " jacaranda " ) then
worldeditadditions.register_sapling_alias ( " jacaranda:sapling " , " jacaranda " )
end
if minetest.get_modpath ( " larch " ) then
worldeditadditions.register_sapling_alias ( " larch:sapling " , " larch " )
end
if minetest.get_modpath ( " maple " ) then
worldeditadditions.register_sapling_alias ( " maple:sapling " , " maple " )
end
if minetest.get_modpath ( " palm " ) then
worldeditadditions.register_sapling_alias ( " palm:sapling " , " palm " )
end
2021-08-12 02:09:24 +02:00
if minetest.get_modpath ( " plumtree " ) then
worldeditadditions.register_sapling_alias ( " plumtree:sapling " , " plum " )
end
if minetest.get_modpath ( " hollytree " ) then
worldeditadditions.register_sapling_alias ( " hollytree:sapling " , " holly " )
end
2020-09-13 21:32:55 +02:00
if minetest.get_modpath ( " pomegranate " ) then
worldeditadditions.register_sapling_alias ( " pomegranate:sapling " , " pomegranate " )
end
if minetest.get_modpath ( " willow " ) then
worldeditadditions.register_sapling_alias ( " willow:sapling " , " willow " )
end
if minetest.get_modpath ( " mahogany " ) then
worldeditadditions.register_sapling_alias ( " mahogany:sapling " , " mahogany " )
end
if minetest.get_modpath ( " chestnuttree " ) then
2020-09-14 02:19:15 +02:00
worldeditadditions.register_sapling_alias ( " chestnuttree:sapling " , " chestnut " )
2020-09-13 21:32:55 +02:00
end