how do i make custom grass?

Started by mtn dew 314 on Wed, 03/11/2015 - 05:38
Last seen on 10:48, 8. Aug 2018
Joined Dec 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
how do i make custom grass?
Wed, 03/11/2015 - 05:38

I am making a mod with a grass block, I want it to behave exactly like normal grass. what is the code for grass to spread to dirt? & what is the code for grass to change to dirt when a block is above it?

i could code it to spread to adjacent dirt blocks, but i dont know how to make it change to dirt when a block is on it without coding it for every singe block. any ideas? or code?

 

Thank you

Last seen on 10:48, 8. Aug 2018
Joined Dec 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
some one help mee
Tue, 03/17/2015 - 00:26

some one help mee

Last seen on 03:01, 1. May 2018
Joined May 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
the only thing I can think of
Tue, 03/31/2015 - 21:40

the only thing I can think of is setting the dirt to change the block under it to the dirt so the grass will remove it self. and due the same with the grass block so that any grass block under that kind of block will change it into dirt but the only problem is you have to due that for every block you have. let me know if you figure it out I am working on the same thing at this time. I will get back to you if I figure a way to make this easyer

Last seen on 03:01, 1. May 2018
Joined May 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:the only thing I can think of
Tue, 03/31/2015 - 22:46

@#2 yeah I didnt think this though the first time. we need to figure out how to set it where it detects any block place above it then it will change its self to dirt

Last seen on 10:16, 17. Aug 2018
Joined Dec 2013
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
  • wiki contributor
  • moderator
You could make a variable
Tue, 03/31/2015 - 23:07

You could make a variable that when a block is placed on it, it changes. Use the "When Block touches"

[spoiler]
Watch My youtube channel for mcreator tutorials released weekly and daily.
https://www.youtube.com/c/RsKingGifted
[/spoiler]

Last seen on 10:48, 8. Aug 2018
Joined Dec 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:You could make a variable
Thu, 04/02/2015 - 02:28

@#3 When did they add that variable?

Last seen on 10:48, 8. Aug 2018
Joined Dec 2014
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
RE:You could make a variable
Thu, 04/02/2015 - 02:35

@#3 how the @$#% am i supposed to know how to do that?

Last seen on 01:31, 8. Aug 2018
Joined Jul 2017
User points:

Statistics:

  • Comments:
  • Forum topics:
  • Modifications:
  • Wiki pages:
Someone reply.
Wed, 03/07/2018 - 14:28

Someone reply.