Solved mine nearby wheat crops on broken with a tool

  • 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 community!

    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!

xzm

New Member
Jul 27, 2024
8
0
1
soo im trying to make a skript that will break all wheat crops nearby using a specific tool with lore, but it isnt working, help

Code:
on break of ripe wheat plant:
    if player's tool's lore contains "&0&kn/;":
        loop blocks in radius 2 around event-block:
            broadcast "ye"
            break loop-block naturally using player's tool
 
The issue here is likely caused by the lore check. I suggest you switch to checking for the name of the tool instead, or setting an NBT tag on the tool to identify it later. Working with NBT can be tricky if you're starting out, but it's incredibly useful once you've familiarized yourself with it. Here's a tutorial for NBT.
 
Code:
on break of ripe wheat plant:
    loop blocks in radius 2 around event-block:
        break loop-block naturally using player's tool

still doesnt work
 
Code:
on break of ripe wheat plant:
    loop blocks in radius 2 around event-block:
        break loop-block naturally using player's tool

still doesnt work
Is there an error? What's the issue?
 
Is there an error? What's the issue?
there are no issues when i reload the skript, but the harvesting skript still doesnt work
1722436625320.png