Started by
fakypoo
on
Topic category: Help with Minecraft modding (Java Edition)
Trying to make some custom seeds, although I can't figure out how to make it drop as a grass seed as the option is not there anymore.
Any useful help would be appreciated!
You can make it with procedures.
Firstly you create a procedure, then set it's "Event Trigger" from 'No External call' to 'A block is broken'.
After that, you should place an 'if' statement which you can find in the 'Logic and loops' category.
Then go to the 'Logic operations' and select the first yellow element, then you need to check that block on the break's coordinates so go to the 'Block procedures' and select the 'Get block at x y z' element, and put it in the left side of your yellow element.
Lastly go to the 'Minecraft components' category and select a block place(The second one from the top) and select the grass, then place it to the right side of your element then place the whole yellow element in the 'if' statement.
Also it's preferable to do it with a chance, otherwise it will drop your item everytime you break a grass. You can find a small procedure for it in the 'Template Library' tab, it's named 'Do with 70% chance', you just click it and place it inside your 'if' statement, and just rewrite the '0.7' value to change the chance.
I hope I could help you!
I forgot to add that after that you did this, you can put another element inside the second 'if' statement, which you can find in the 'World management', and it's called 'Spawn Gem ... at x y z'.
Also sorry I missed to underline some other things in my previous comment, but I think you will find the things without it too, I just wanted to make them to be a bit separated, because my comment is a bit dry.
This was very helpful; thank you
i was reading this post and your solution, i did what you said, but now it still doesnt work, all i made was and extra drop with a 70% drop change. How do i make it a grass seed that can be placed in farmland?