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

    Prevent certain block places on others plot

    then check if the player owns that plot (chunk) if {plots::%player's chunk%} is set: set {_owner} to {plots::%player's chunk%} parsed as player #remember {plots::*} contains player's uuids as values so we need to get the actual player from the uuid if {_owner} is not player...
  2. Abdera7mane

    Solved Inventory rows using TuSKe

    that's a Minecraft limitation, don't forget to mark the thread as solved
  3. Abdera7mane

    Solved Inventory rows using TuSKe

    you have to specify the rows before the name: open virtual chest inventory with x rows named "Shop" to player also there is a limit in number of rows, and it is at 6 rows.
  4. Abdera7mane

    Random Integer Between 2 Locations

    well I tested using a string before and caused errors. but noticed that the "location at" expression takes a world type at the last parameter, I know it is optional to specify the world but there are cases where you need to if I remember correctly. [the] (location|position) [at] [(][x[ ][=[...
  5. Abdera7mane

    How to make a loop stop when a block is broken?

    there are two types of loops, the for loop, ex: loop {list::*}: #code and the while loop, ex: while player is riding: #code wait 5 ticks we usually use the for loop when we know when will the repetition ends, unlike the while loop is mostly used when we don't know when will we...
  6. Abdera7mane

    Prevent certain block places on others plot

    yes it is possible but, please before asking here at least you come with some knowledge on what are you making, tell us what have you tried. anyway, save the plots chunk in a list: set {plots::%player's chunk%} to player's uuid to know if this chunk is used by other players you can check if...
  7. Abdera7mane

    Random Integer Between 2 Locations

    first of all this line is useless loop {_x}, {_y}, and {_z} you setted {_location} in a diffrent block of code and it's a local variable you have to make it global (remove the underscore) if you want to use it globaly in your scripts. But there is no point to set the location every second, just...
  8. Abdera7mane

    Random Integer Between 2 Locations

    Before asnwering to your question, I have some remarks: Avoid using console commands. There is a give effect in skript, ex: give player 1 of diamond random integer gives a random interger what else do you expect ? if you want a random location just create 3 random numbers relative to x y and...
  9. Abdera7mane

    Detect item name but ignoring lore

    loop-item or loop item is the same thing the mistake is, with name isn't a thing in skript this should work if loop-item is leather named "&7Pig Eyes x 16": #code if it still can't compare then check the item type and its name separately if loop-item is leather: if name of loop-item...
  10. Abdera7mane

    Detect item name but ignoring lore

    player's inventory contains more than one item even if it's empty the inventory is filled with air you have to use contains to check if the player has a an item in his inventory. So how's using contains breaking other codes ? are there any errors ?
  11. Abdera7mane

    Function in function

    That's not how you pass arguments to a function repeatname(%{_round}%,%{_from}%,%{_to}%,"&9&lDiamantzombie") please read this wiki page it explains how to use variables in skript and when using the percent sign. correct format: (make sure you passed the correct arguments type to your function...
  12. Abdera7mane

    Amount of entities in chunk or near player

    why looping through all entities ? you don't need that
  13. Abdera7mane

    Solved Fortune Custom Drops

    this should work and it's way better: on break of obsidian: cancel event if player's tool is a diamond pickaxe: set event-block to air give player (2 * (level of fortune of player's tool)) of nether star else: set event-block to air give...
  14. Abdera7mane

    Amount of entities in chunk or near player

    set {_list::*} to all entites where [input's chunk is {_chunk}] change this condition so it does what you want input's chunk is {_chunk} input: is the entity which is being checked after executing this effect {_chunk}: is a local variable that holds a chunk type, you can replace it by an...
  15. Abdera7mane

    Server "crashing"

    reload is unsupported by most of the plugins, even Paper warns you before executing the reload command it's not a skript bug
  16. Abdera7mane

    Solved problem "/skript help" in console

    the latest supported version of skript on Minecraft 1.8 is 2.2 dev36
  17. Abdera7mane

    Variables in scoreboard not working

    delete score "score name" in sidebar of player before asking in the forum it's highly recommanded to search in the documentation.
  18. Abdera7mane

    Variables in scoreboard not working

    if you want to use variables or expressions inside a text you will have to put it between double percent sign: example: set score "Kills: %{kills.%player%}%" in sidebar of player to 4
  19. Abdera7mane

    item name change

    You could just remove this line since you want to detect item name change in any crafting inventory type of event-inventory is workbench inventory
  20. Abdera7mane

    item name change

    I don't think if it is possible to get the items used while crafting an item through skript, but lets give this a try skript has a "craft" event which includes 7 event values: event-slot, event-world, event-player, event-item, event-inventoryaction, event-clicktype and event-inventory the most...