#Allow a plant to be planted on soul sand

36 messages · Page 1 of 1 (latest)

edgy pagoda
#

I would like the yucca plant from Atmospherics to be planted on soul sand - I'd like for it to only be found on the nether. I can figure out how to remove it from the overworld pretty easily, but how can I make it so that it can be planted on soul sand and soul soil? Is there a wiki page that could help me with that?
I'd also like to find out how to make it generate naturally in the nether, but I'm sure that's something that I can figure out by searching up more deeply than I have at the moment.

tropic stoneBOT
#

Once your ticket has been resolved, please close it with </ticket close:1054771505520717835> command!

eager swan
#

ServerEvents.tags('item', event => {
event.add('atmospheric:yucca_placeable', 'minecraft:soul_sand')
})
put this in your server scripts and try it out

#

oh youre on 1.18 one sec

steel emberBOT
#

Paste version of yuccaplantable.js from @eager swan

eager swan
#

oh?

edgy pagoda
#

Unless I'm doing something wrong, I just plopped the script in the server scripts folder

eager swan
#

did you try /reload?

#

show me your script

edgy pagoda
#

Yep, restarted the game as well just in case something was acting up

eager swan
#

ah, dont think a full restarts necessary here but gotcha

edgy pagoda
eager swan
#

hmm

#

ill download the mod myself and see whats up with it, give me a moment

#

yeah that was my bad, i added the tag to the item itself when it shoulve been a block tag, should work now @edgy pagoda

steel emberBOT
#

Paste version of yuccaplantable.js from @eager swan

eager swan
#

and if youd like to remove 'minecraft:dirt' and 'minecraft:sand' from the yucca placeables to prevent them from being placed on those you can just change it to event.remove i believe

edgy pagoda
#

Gotcha, thank you for the help! Quick question; where did 'atmospheric:yucca_placeable' come from? I'm a bit confused on that bit

#

I ask just in case I want to add more blocks 🤔

eager swan
#

also if youd like to only let yucca trees spawn in the nether then this isnt the way to do it i dont think

#

its from the datapack data>atmospheric>tags>yucca_placeable

#

you can find the data folder in the actual .jar file

edgy pagoda
#

Ah, gotcha, that makes a lot of sense. I'm sure I can take it from there 🥳

edgy pagoda
eager swan
#

even if you change the block tag on aloe vera it still wont spawn in the nether unless you use these events

#

theres plenty of examples of how to do this in here one sec ill pull one for you

edgy pagoda
#

:o that's helpful. So I'm assuming aloe very would be in the worldgen data folder

steel emberBOT
#

[Quote ➤](#1130547554409533600 message) You can add and remove worldgen features with KubeJS, and the wiki has pages on those!

eager swan
#

yup

#

worldgen biome i believe, you could also do this via datapack but kubejs handles it well

edgy pagoda
#

glad it's straightforward, I've been running into some code complications recently so this is a breath of fresh air lol

eager swan
#

good luck to ya!

edgy pagoda
#

Thank you so much!