Solved Growing Wheat

  • Welcome to skUnity!

    Welcome to skUnity! This is a forum where members of the Skript community can communicate and interact. Skript Resource Creators can post their Resources for all to see and use.

    If you haven't done so already, feel free to join our official Discord server to expand your level of interaction with the comminuty!

    Now, what are you waiting for? Join the community now!

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Great_Guy96

New Member
Mar 13, 2019
7
4
3
23
Skript Version (do not put latest): Skript 2.3.7
Skript Author: Bensku
Minecraft Version: 1.14.4
---
Full Code:

Code:
if {_block} is freshly planted wheat plant:
    set {_block} to stage 2 wheat plant
   if {_block} is stage 2 wheat plant:
    set {_block} to stage 3 wheat plant
   if {_block} is stage 3 wheat plant:
    set {_block} to stage 4 wheat plant

Errors on Reload:

None

Console Errors:

None

Addons using (including versions):
Skellet 1.9, SkQuery 4.1.1

Troubleshooting:

Have you tried searching the docs? Yes
Have you tried searching the forums? Yes
What other methods have you tried to fix it? I have tried to test different parts, and I know that this is the buggy part
[doublepost=1567716865,1567716749][/doublepost]Also, all I'm trying to do is make it so that is forces wheat to grow (max growth stage 4)
 
so whats the issue?
You've shown a tiny piece of your code, which literally does nothing, and then you dont explain what your issue is or what you want it to do?
 
Oh sorry...
Here's my full code:
Code:
every second in "Plot_World":
 loop {grassseeds::*}:
  set {_block} to loop-value
  chance of 33%:
   if {_block} is freshly planted wheat plant:
    set {_block} to stage 2 wheat plant
   if {_block} is stage 2 wheat plant:
    set {_block} to stage 3 wheat plant
   if {_block} is stage 3 wheat plant:
    set {_block} to stage 4 wheat plant
Just so you know {grassseeds::*} is a list with a lot of blocks in it that are wheat blocks.
What I'm trying to do is make a custom growth skript so that I can control the growth of only certain plants
[doublepost=1567801788,1567798225][/doublepost]Never Mind, I figured it out!
 
Status
Not open for further replies.