Stop certain item from stacking

  • 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.
Items with different nbt can't stack. And that's a client-side method that requires only to give different items different nbt. If you manage to make an automatic way to have every item that enters a player's inventory get a different nbt, then it's easy to do.

There may be an event that triggers when items stack that you can just cancel. There is one (Skellett) that works for items on the ground only, i guess.
 
Look up the NBT of an entity, block or item expression, you can add the custom nbt via a give command, every so many seconds in the world loop inventories, on inventory click etc.
 
Look up the NBT of an entity, block or item expression, you can add the custom nbt via a give command, every so many seconds in the world loop inventories, on inventory click etc.
I tried implementing your method, but it did not seem to work. What am I doing wrong?
code_language.skript:
on rightclick with mushroom soup:
    cancel event
    if {counter.%player%} is not set:
        set {counter.%player%} to 0
    set the player's tool to bowl with nbt "{antistack:%{counter.%player%}%}"
    add 1 to {counter.%player%}
    heal the player by 3.5 hearts
[doublepost=1503226482,1503158739][/doublepost]Bump
 
Status
Not open for further replies.