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]: