Posted May 18, 20205 yr I would like to fire an event for random blocks in the world (in this case leaves). This would be similar behavior I assume to the functionality of grass spreading and crops growing but I am having a hard to accessing and understanding that code any insight into this would be priceless to me, thanks for your consideration!
May 18, 20205 yr Get a block position. Get the block state at that position. Call tick() on it. Apparently I'm a complete and utter jerk and come to this forum just like to make fun of people, be confrontational, and make your personal life miserable. If you think this is the case, JUST REPORT ME. Otherwise you're just going to get reported when you reply to my posts and point it out, because odds are, I was trying to be nice. Exception: If you do not understand Java, I WILL NOT HELP YOU and your thread will get locked. DO NOT PM ME WITH PROBLEMS. No help will be given.
May 18, 20205 yr Author This is useful, but how do I get a random block of a certain type? Or call a random tick on all blocks of the same type
May 18, 20205 yr See ServerWorld#tickEnvironment, towards the bottom of the method is where it does random ticks. I'm eager to learn and am prone to mistakes. Don't hesitate to tell me how I can improve.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.