varaible

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

  1. TimeStellar

    Every tick doesn't work with variable

    I am making a action bar for health and when i tried to show the variable it says that there is no player in a particular event Here is the code every 1 tick: send action bar "&c%{myhp.%player%}%&7/&c%{mymaxhp.%player%}%" to players
  2. F

    Solved Setting the number in item's lore as a variable

    Hey everyone! I need your help about two problems. I am trying to make a money bag skript. Basically, when player right clicks with a book, I want an inventory to open with the number of gold nuggets according to the item's lore. Check the code you will get what I mean. on right click with book...
  3. L

    Solved Reading only dates from %now%

    I am using %now% to get the current date, and it works, my problem is that I want it to only display the date and not the time, but I don't understand how that would be done.
  4. N

    Solved (Help) Unique NBT's between two items that share the same name and NBT

    Skript Version: 2.5.3 Skript Author: YourSpeedDealer Minecraft Version: 1.16.5 Full Code: command /m4a1: trigger: set {_M4A1} to 1 leather horse armor named "&bM4A1" add "{maxDurabilityM4:31}" to nbt of {_M4A1} set {ammo} to tag "maxDurabilityM4" of nbt of {_M4A1}...
  5. FoxCraftGaming

    Solved variable skript

    hey, i am realy bad with skript so i hope someone can help me! i need a skript than let me do /setevent-<name/date/status> that change the variable {event_<name/date/status>} to the arguments of the command. its for my server with daily events so i dont have to change config files every 2 hour...
  6. F

    variables in strings

    Skript Version: Skript 2.4 Skript Author: fireyburst1097 Minecraft Version: 1.15.2 --- every 5 seconds: loop all players: wipe loop-player sidebar set name of sidebar of loop-player to "&b&l&nGensMiner" set score "&7" in sidebar of loop-player to 11 set...
  7. A

    Can't set items in a player's slot to variable

    open chest with 3 rows named "&6&lKøb" to player wait 1 tick format slot 0 of player with green wool named "&a&l+" to run [set {crypto.%player%.amount} to {crypto.%player%.amount}+1]->[format slot 1 of player with black wool named "&7&l%{crypto.%player%.amount}%" to...
  8. B

    Can not set yaw and pitch to location variable

    this is a code on click: set {_loc}'s location to location at 0.5, 40, 0.5 in "world3" set {_loc}'s pitch to 90 set {_loc}'s yaw to 0 send "%{_loc}'s yaw%" send "%{_loc}'s pitch%" send "%{_loc}'s x-coordinate%" send "%{_loc}'s y-coordinate%" send "%{_loc}'s...
  9. F

    Solved How do I check if a variable has reached a certain number

    I am Skripting a RP-System (similar to gta experience levels) I only got one problem, how do I create a variable that only contains a number which I can check (e.g. if a variable has reached "20" it should trigger something or when it has reached the count of "40")? If someone is able to...