Jump to content

Recommended Posts

Posted

I'm not sure if this is the best way to do this. I need to force a crop to grow.

 

After doing some checks I call this function:

 

world.forceBlockUpdateTick(checkBlock, pos, random);

 

I'm not sure what that last random does. Is there a way to make it so it causes the crop to grow 100% the time?

 

Thanks.

Posted

I'm coding an item like a watering can, that when used on crops it picks a random number for example between 1 and 10 and if the number is 1, then it makes the crop on the check position grow by 1 100% of the time.

 

PS: gonna take a look at that alternative you suggest ;) Thanks.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.