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 ( {
{ " default:sapling " , " oak " } ,
{ " 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 " } ,
{ " moretrees:willow_sapling_ongen " , " willow " } ,
{ " moretrees:poplar_sapling_ongen " , " poplar " } ,
{ " moretrees:poplar_small_sapling_ongen " , " poplar_small " } ,
{ " moretrees:apple_tree_sapling_ongen " , " apple " } ,
{ " moretrees:birch_sapling_ongen " , " birch " } ,
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
-- ██████ ██████ ██████ ██ ████████ ██████ ███████ ███████ ███████
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
-- ██ ██ ██ ██ ██ ██ ██ ██████ █████ █████ ███████
-- ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
-- ██████ ██████ ██████ ███████ ███████ ██ ██ ██ ███████ ███████ ███████
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
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