Started by
FanelLore
on
Topic category: Help with Minecraft modding (Java Edition)
Hey!
So I've been working on making a custom dimension that has unique caves. However, part of that would be hanging cave roots/grass. Is it possible to make hanging plants like what I have described? I have wondered the same thing for 1.14.4 style lanterns too, since I was hoping to do something similar to that as well. Another thing I'm not sure about is if it requires a procedure, where would I link that procedure?
Thanks in advance!
Edited by FanelLore on Sat, 01/02/2021 - 22:28
Yes, this is possible. If you want them to generate naturally, make a procedure that checks if the block it is trying to spawn on is facing down as a additional generation condition. Experiment. Procedures are fun to play around in, and if you find what you are looking for, then good for you! Hope this helps.
Hmm... So I can't seem to find the blocks for that (I did find the block direction thing, but I couldn't find the block(s) required to check if it's facing down. However, I discovered that if you do an if block with --> not --> is air at [x] [y + 1] [z], and then put place [block] at [x] [y] [z], then it would make sense for it to work. Do you think it would work the same way as what you're talking about? I would obviously add some blocks to make it specify which blocks to spawn on.
Here is my answer to your issue:
https://imgur.com/a/aiUXY5C
It is the best I could come up with at short notice, you will have to put in other conditions to only allow it to spawn in caves, and maybe other stuff.
Also, replace the Cobb with your plant
And I realize you have to make it make sure that its only placing on certain blocks. It is simply a skeleton, do with it as you see fit.
Alright, Thanks!
So I have encountered another problem. I'm assuming that this would be an additional condition (In other words, for the plant spawning). However, I don't see a way to connect the procedure I just made to the condition box there.
When I open the dropdown list, there is no options listed, even though I just made that procedure and I have around 15 other existing procedures.
Do you know how to figure this out?
I'm going to test it some more and see if it even seems to matter whether you link it up.
I tested it in-game and the plants spawned on the ground like any other plant would except that of course the texture was upside down.
But yeah, I still need help with the conditions because they don't seem to be able to be linked up...
Hmmm. Let me fiddle around with the procedure, I will see if I find the answer.
I have figured it out. Create an invisible block that spawns naturally, then give it this procedure, or something like it:
https://pasteboard.co/Jo9HsqfZ.png
It may still need a little tweaking, but that should do it! (also replace the upside-down dead bush with your plant)
I will try this out!
So I should make the invisible block be replaced by the plant, basically?
Update: I tested with what you said and it appears as though the blocks simply do not spawn.
Had you actually tested it thoroughly? I might have done something wrong, but if you have an idea of what that might be, let me know.