Recent content by YK_DZ

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

    Solved If loop-value contains

    # Store the location of containers on place: event-block is chests or barrel set {_loc} to location of event-block set {_w} to {_loc}'s world # Also store world set {_x} to {_loc}'s x coordinate set {_y} to {_loc}'s y coordinate set {_z} to {_loc}'s z coordinate...
  2. YK_DZ

    Solved If loop-value contains

    I don't think you can loop all the specific block. Maybe you need to listen on place and on break event and store the location of all chests and barrels in a list, and loop this list when searching for item.
  3. YK_DZ

    Help Me With Gold Nugget On Kill

    on death: if attacker is player: give attacker a gold nugget Maybe you have used the wrong item type
  4. YK_DZ

    Veinminer

    This should work: on break: set {_origin} to "%type of event-block%" set {_oLoc} to location of event-block if {_origin} contains "ore": loop all blocks in radius 3 around {_oLoc}: set {_target} to "%type of loop-block%" set...
  5. YK_DZ

    Please freaking help with list variables and items.

    Maybe you can try this: add uuid of player to {_zplayers::*} set {_i} to emerald named "&a&lEmerald Coin" with lore "&7Use this in the shop for better gear" loop {_zplayers::*}: set {_p} to loop-value parsed as player give 5 of {_i} to {_p} Make your skript more readable and cost...
  6. YK_DZ

    Solved Problem with left click

    https://github.com/SkriptLang/Skript/issues/5220
  7. YK_DZ

    Solved Disabling Endereye Wont Work

    Try ender eye on rightclick: if player's tool is an ender eye: cancel event
  8. YK_DZ

    Solved Problem with left click

    Things is about this script: on leftclick: send 1 to player When load this skript and left click, 1 will be sent. But if an entity is in front of player about 4 - 5 block(player is still too far to attack it), 1 will not be sent(collimator target that entity). So should I listen another...
  9. YK_DZ

    Is there an "On eat start" event?

    I want to do something when player start to eat a carrot, but not when the eating animation is over for the event "On consume". How can I do for this, or I can not do this at all?
  10. YK_DZ

    Solved giving armor stand items...?

    try this command /test: trigger: spawn armor stand at player set tool of last spawned entity to diamond sword
  11. YK_DZ

    Solved Fish an entity

    Thanks for your reply. XD I actually want the sheep to be "fished up", which means I can see a sheep "hang" on the retracted hook and fly towards me. Up*1 Up*2 Ok, I do not know how to achieve this, so I finally decide to use "push" effect and "direction from player to fish hook" to push the...
  12. YK_DZ

    Solved Fish an entity

    Hi, I am trying to replace the fish caught by the rod with a sheep, I have tried the following two methods: on fish: if fish state = caught fish: set entity type of last spawned entity to sheep on fish: if fish state = caught fish: set entity of caught entity to sheep...
  13. YK_DZ

    Swim fast in lava

    Hi, I am looking for a way to increase the speed that moving in lava. I tried dolphins grace and walk speed but it seems that they can not work well in lava.
  14. YK_DZ

    How to make a function that checks the number of items in a container?

    I remove that quotes, but the output is still 0 This is my Skript now: function invAmountMI(id: string,inv: inventory) :: number: set {_amount} to 0 loop all items in {_inv}: if name of loop-item contains {_id}: add 1 to {_amount} return {_amount} on...
  15. YK_DZ

    How to make a function that checks the number of items in a container?

    I have a function like this: function invAmountMI(type: string,inv: inventory) :: number: set {_amount} to 0 loop all items in {_inv}: if name of loop-item contains "{_type}": add 1 to {_amount} return {_amount} on inventory click: set {_Aamount}...