how do i make custom grass?

7 posts / 0 new
Last post
mtn dew 314's picture
Offline
Last seen: 3 months 1 week ago
Joined: 12/20/2014 - 05:43
Gems: -2
how do i make custom grass?

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



mtn dew 314's picture
Offline
Last seen: 3 months 1 week ago
Joined: 12/20/2014 - 05:43
Gems: -2
some one help mee

some one help mee

Offline
Last seen: 1 month 2 weeks ago
Joined: 05/16/2014 - 08:43
Gems: 0
the only thing I can think of

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

Offline
Last seen: 1 month 2 weeks ago
Joined: 05/16/2014 - 08:43
Gems: 0
RE:the only thing I can think of

@Crayeights 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

xXMCXx's picture
Offline
Last seen: 18 hours 12 min ago
Joined: 12/27/2013 - 21:01
Gems: 338
You could make a variable

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

Spoiler: Highlight to view

Watch My youtube channel for mcreator tutorials released weekly and daily.
https://www.youtube.com/c/RsKingGifted
mtn dew 314's picture
Offline
Last seen: 3 months 1 week ago
Joined: 12/20/2014 - 05:43
Gems: -2
RE:You could make a variable

@xXMCXx When did they add that variable?

mtn dew 314's picture
Offline
Last seen: 3 months 1 week ago
Joined: 12/20/2014 - 05:43
Gems: -2
RE:You could make a variable

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