Problems with Grass-like spreading block

Started by Deadly_Golem on Mon, 10/14/2019 - 00:26

Topic category: Bugs and solutions

Last seen on 00:23, 22. Oct 2019
Joined Apr 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Problems with Grass-like spreading block
Mon, 10/14/2019 - 00:26

I am working on a mod that re-adds removed, other version exclusive, and post 1.12 features, along with some from the spin off games. (Minecraft Earth, Dungeons, Storymode, and Biomes and Builders)

I'm currently trying to add the nether grass from 1.16 that you can see during MINECONE live 2019, while they show off the new biomes. I decided I should make it spread like grass does, since it is a nether version of grass. However, once I finished coding it I found a problem. Unloading the chunks, for leaving the world or just traveling a long distance would completely undo the spreading of the grass. Also, if you were to mine the spread grass with a silk touch it would drop netherrack, however if you were to mine the original block with a silk pick it would drop the grass, and to add insult to injury the random tick update it was set to spread on seemed to be no different from every tick update.

Here are some videos of the block's code, along with some of these things happening:

Glitch

Code

 

Last seen on 03:56, 22. Nov 2019
Joined Oct 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
I may be wrong, so don't…
Mon, 10/14/2019 - 01:30

I may be wrong, so don't quote me on it. But I believe your problem might root from the first part of your procedure where you say if the block above it is not air, mushroom, other mushroom, or whatever the last thing is, then turn it into a netherrack. because what's happening is your block is undoing itself due to something in the procedure. 

Last seen on 00:23, 22. Oct 2019
Joined Apr 2015
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
If that was the case this…
Mon, 10/14/2019 - 13:53

If that was the case this shouldn't be happening. Thanks for trying though.