How to make auto refill

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

varboosted

Active Member
Apr 20, 2020
50
3
8
24
Guys how to make how refill in skript for example if you have in your inventory else armor only diamond/iron/stone sword all of the other you'll automaticlly get soups all inventory

and how make no durabllity damage for swords and fishing rod ?
 
Please do your research before posting, but;

For the refill of soups, you can use something like this:
Code:
on consume of mushroom soup:
    if {%player%.fighting} is true:    # Use if you only want to refill during a fight
        wait 1 tick    # Try this if you need it
        give player mushroom soup
        stop
    else:
        stop

For the no durability damage, you can do something like this:
Code:
on item damage:
   set item damage to 0
 
Status
Not open for further replies.