Since they removed the option,. how do you make items drop as a grass seed now?

Started by fakypoo on Tue, 01/14/2020 - 19:13

Topic category: Help with modding

Last seen on 21:53, 24. Jan 2020
Joined Jan 2020
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
Since they removed the option,. how do you make items drop as a grass seed now?
Tue, 01/14/2020 - 19:13

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!

0Upvote this forum topic
Last seen on 13:29, 26. Jan 2020
Joined May 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
You can make it with…
Wed, 01/22/2020 - 18:06

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!

 

 

0Upvote this forum topic
Last seen on 13:29, 26. Jan 2020
Joined May 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • Tracker tickets:
I forgot to add that after…
Wed, 01/22/2020 - 18:18

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.

0Upvote this forum topic