Solved give items over the inventory limit

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

JuliHatSpaB

Member
Aug 18, 2023
47
1
8
I want to give the player 64 example diamonds. And if the player has not enough space in his inventory I want to drop them in front of him (like the /give command does it). But
give player 64 of diamond just ignores the items that are to much.
Do you know how I can do this?
 
Hey, try this:
Code:
if player has enough space for 64 of diamonds:
    give 64 diamonds to player
else:
    drop 64 diamonds at player