#replanting skript not working

1 messages · Page 1 of 1 (latest)

unborn fiber
#
  if event-block is wheat[age=7]:
    if "%lore of player's tool%" contains "&6&lReplenish I":
      if player has wheat seeds in their inventory:
        wait 1 tick
        set event-block to wheat[age=1]
        remove 1 wheat seeds from player
on break:
  if event-block is carrots[age=7]:
    if "%lore of player's tool%" contains "&6&lReplenish I":
      if player has carrot in their inventory:
        wait 1 tick
        set event-block to carrots[age=1]
        remove 1 carrot from player
on break:
  if event-block is beetroot[age=7]:
    if "%lore of player's tool%" contains "&6&lReplenish I":
      if player has beetroot in their inventory:
        wait 1 tick
        set event-block to beetroot[age=1]
        remove 1 beetroot from player
on break:
  if event-block is potato[age=7]:
    if "%lore of player's tool%" contains "&6&lReplenish I":
      if player has potato in their inventory:
        wait 1 tick
        set event-block to potato[age=1]
        remove 1 potato from player
on break:
  if event-block is nether wart[age=7]:
    if "%lore of player's tool%" contains "&6&lReplenish I":
      if player has nether wart in their inventory:
        wait 1 tick
        set event-block to nether wart[age=1]
        remove 1 nether wart from player

the wheat one works but none of the others it has issues with only the lines that say ```if event-block is (example) potato[age-7]:

rustic bronze
#

o k

#

first of all

#

you can combine those events

#
  if event-block = a:
    #code
  else if event-block = b:
    #code
  ...```
#

no need to stringify the lore, its already a string