Search results

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

  1. lotzy

    help me

    on inventory click: if clicked inventory is player's current inventory: if clicked slot is 1 or 2 or 3 or 4: cancel event execute player command "/menu" if cursor slot of player is air: set cursor slot of player to air if clicked slot is 0: cancel event...
  2. lotzy

    How Do I See What Item's Are In Player's Tool

    with skript-reflect: set {_shulker} to shulker box # any shulker, with items or without. set {_items::*} to items in {_shulker}.getItemMeta().getBlockState().getInventory() broadcast "%{_items::*}%" # it will be display all items inside shulker box item
  3. lotzy

    /clone in skript

    # this function store build with some id # pos1 - start location, pos2 - end location, # inlucdeAir - save air or not? function storeBuild(id: text,pos1: location, pos2: location, includeAir: boolean = true): set {_pos1} to location of block at {_pos1} set {_pos2} to location of block at...
  4. lotzy

    Solved Prevent duplicate "while player is online:" loops

    on join: if {-loops::%uuid of player%} is true: stop set {-loops::%uuid of player%} to true while {-loops::%uuid of player%} is true: # some code wait 5 seconds if player is not online: delete {-loops::%uuid of player%}
  5. lotzy

    pow(boring)

    pow(boring)
  6. lotzy

    /clone in skript

    Can you explain what doing /clone command, its copy from location to location? Because store building then paste has greater performance then copy and paste natively, I can make code for any of this options. What would you prefer?
  7. lotzy

    /clone in skript

    You can simply implement function to place not one block, save block types with locations then calculate offset vector for place this on any location
  8. lotzy

    Help with a skript

    With skript-relfect: import: org.bukkit.attribute.Attribute on join: player.getAttribute(Attribute.GENERIC_MAX_HEALTH).setBaseValue(50);
  9. lotzy

    /clone in skript

    Why are you using command instead of placing blocks with skript?
  10. lotzy

    Random script

    Sorry, random element of {rb::themes::*} Ошибки случаются. Поправил код в исходном сообщении, мало-ли
  11. lotzy

    Random script

    on load: set {rb::themes::1} to "theme 1" set {rb::themes::2} to "theme 2" command /randombuild: trigger: set {_theme} to random element of {rb::themes::*} send "Theme for building: %{_theme}%" to all players
  12. lotzy

    How can I remove permission from player?

    Vanilla skript doesn't contain permission management. You can only check if player has specific permission
  13. lotzy

    Addon Skcrew - Another sh1t update

    Continue war with cumulus api update and related with this bugs
  14. lotzy

    Solved Modify existing command

    You cant edit existing command. Best choice to make something what you want check API of plugin then use Skript-Reflect for handle needed events. Idk another variants.
  15. lotzy

    Solved /do commad

    with Skcrew addon or SkQuery addon or SkJade addon: command /do <text>: trigger: evaluate arg-1 with Skript-reflect addon: import: ch.njol.skript.lang.parser.ParserInstance ch.njol.skript.lang.Effect effect evaluate %text%: trigger: set {_parser} to ParserInstance.get()...
  16. lotzy

    On walk on activator rail

    on step , and on move the same events
  17. lotzy

    Solved Modify existing command

    Because you are using 'on command' event, not the command registration syntax. Read the docs.
  18. lotzy

    Solved How to make skript "local"?

    Use something like that for assign variable with player: on join: set {bounty::%uuid of player%} to 0 ... every 15 seconds: loop all players: If {bounty::%uuid of loop-player%} >= 0: remove 0.1 from {bounty::%uuid of loop-player%} else: set {bounty::%uuid of...
  19. lotzy

    Solved Need help specifying a projectile and have it retain its particle trail

    on leftclick holding red candle: cancel event make the player shoot a snowball at speed 1 set {_projectile} to shot projectile set metadata "FuseTrail" of {_projectile} to true play sound "entity.tnt.primed" with volume 3 and pitch 2 if player's gamemode is not creative...