Solved Remove item from inventory once player breaks block

  • 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.

RunaYoutube

Member
Nov 10, 2019
34
1
8
28
so basically I have this script where if a player breaks a hay bale they get a hay bale named "Generator" but the player also gets a hay bale with the name "Hay Bale" how can I stop this from happening

Code:
on mine:
    cancel event
    set event-block to air
    give event-block to player

on break of hay block:
    remove hay block named "Hay Bale" from player's inventory
    give player 1 hay block named "&7Generator"
    remove 1 from {gens::%player's uuid%}
    send "&6&lWheat Generator &ahas been broken"
[doublepost=1605309581,1605308414][/doublepost]Solved it on discord
 
Status
Not open for further replies.