1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

auto replant skript help.

Discussion in 'Skript' started by ECSE, Jun 12, 2021.

Thread Status:
Not open for further replies.
  1. ECSE

    ECSE Member

    Joined:
    May 27, 2021
    Messages:
    11
    Likes Received:
    0
    skript : 2.5.3
    spigot : 1.16.5
    other plant are works well, but cocoa, netherwart doesen't work.
    is there other id for nether wart, cocoa?



    on block break:
    if {seed.status.%player%} is not set:
    if {seed.%player%} = -1 or -2:
    set {seed.%player%} to 0
    if {seed.status.%player%} is true:
    if {seed.%player%} < 0:
    send "{@a}&a자동심기 &f횟수를 모두 사용하였습니다."
    delete {seed.status.%player%}
    if event-block is wheat plant:
    if player has seeds:
    wait 1 tick
    remove 1 seeds from player
    set block to wheat plant
    if event-block is carrot plant:
    if player has carrot:
    wait 1 tick
    remove 1 carrot from player
    set block to carrot plant
    if event-block is potato plant:
    if player has potato:
    wait 1 tick
    remove 1 potato from player
    set block to potato plant
    if event-block is beetroot plant:
    if player has beetroot seeds:
    wait 1 tick
    remove 1 beetroot seeds from player
    set block to beetroot plant


    if event-block is cocoa: ###########problem starts here
    if player has cocoa beans:
    if the data value of the event-block is 9, 10, 11 or 12:
    wait 1 tick
    remove 1 cocoa beans from player
    set block to cocoa
    if event-block is nether_wart_block:
    if player has nether wart:
    if the data value of the event-block is 3:
    wait 1 tick
    remove 1 nether wart from player
    set block to nether_wart_block
     
  2. Jayden13O

    Jayden13O Member

    Joined:
    Jun 9, 2021
    Messages:
    22
    Likes Received:
    1
    Your code is unreadable, let me fix that.
    Code (Text):
    1. on block break:
    2.   if {seed.status.%player%} is not set:
    3.     if {seed.%player%} = -1 or -2:
    4.       set {seed.%player%} to 0
    5.   if {seed.status.%player%} is true:
    6.     if {seed.%player%} < 0:
    7.       send "{@a}&a자동심기 &f횟수를 모두 사용하였습니다."
    8.       delete {seed.status.%player%}
    9.   if event-block is wheat plant:
    10.     if player has seeds:
    11.     wait 1 tick
    12.     remove 1 seeds from player
    13.     set block to wheat plant
    14.   if event-block is carrot plant:
    15.     if player has carrot:
    16.     wait 1 tick
    17.     remove 1 carrot from player
    18.     set block to carrot plant
    19.   if event-block is potato plant:
    20.     if player has potato:
    21.       wait 1 tick
    22.       remove 1 potato from player
    23.       set block to potato plant
    24.   if event-block is beetroot plant:
    25.     if player has beetroot seeds:
    26.     wait 1 tick
    27.     remove 1 beetroot seeds from player
    28.     set block to beetroot plant
    29.  
    30.  
    31.   if event-block is cocoa: #problem starts here
    32.     if player has cocoa beans:
    33.       if the data value of the event-block is 9, 10, 11 or 12:
    34.       wait 1 tick
    35.       remove 1 cocoa beans from player
    36.       set block to cocoa
    37.   if event-block is nether_wart_block:
    38.     if player has nether wart:
    39.       if the data value of the event-block is 3:
    40.       wait 1 tick
    41.       remove 1 nether wart from player
    42.       set block to nether_wart_block
    Are there any errors?
     
  3. ECSE

    ECSE Member

    Joined:
    May 27, 2021
    Messages:
    11
    Likes Received:
    0
    sorry for reply lately.
    i change the code that you given, but still not works.
     
  4. Minecoll_YT

    Supporter Forums Helper

    Joined:
    Dec 2, 2018
    Messages:
    650
    Likes Received:
    39
Thread Status:
Not open for further replies.

Share This Page

Loading...