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

    Now, what are you waiting for? Join the community now!

  1. G

    Solved Animal ownership script

    But the tag never gets added, so if you've confirmed and it tells you that you now own the animal, it lets you do it again, when it shouldn't pass the first "if tag "Owner" of nbt of victim is not set:"
  2. G

    Solved Animal ownership script

    This is the current script. on damage of an animal: if attacker's tool is lead: cancel event send nbt of victim to console if tag "Owner" of nbt of victim is not set: if {animals::%attacker's uuid%::listen} is not set: set...
  3. G

    Solved Animal ownership script

    Right, okay. The issue is that the NBT tag never gets added to the entity.
  4. G

    Solved Animal ownership script

    Just did that, doesn't seem like it. I might try SkStuff for NBTs instead.
  5. G

    Solved Animal ownership script

    if tag "Owner" of nbt of victim is not set: if {animals::%attacker's uuid%::listen} is not set: set {animals::%attacker's uuid%::listen} to true send "Punch the %victim% again to confirm ownership" to attacker wait 5 seconds...
  6. G

    Solved Animal ownership script

    Oh my god, you did it, thanks! Actually, how would I check if the animal is already owned by someone?
  7. G

    Solved Animal ownership script

    Accidenally deleted my reply, in case you didn't catch it; Hit the plus button on the formatting bar
  8. G

    Solved Animal ownership script

    send tag "Owner" of nbt of victim to attacker Doesn't do anything.
  9. G

    Solved Animal ownership script

    That if statements seems to be always outputting false, would you mind testing the script for yourself? I'm truly lost, been working on this for 5 hours :)
  10. G

    Solved Animal ownership script

    I can't quite get the NBT to work, no errors but doesn't seem like the NBT tag is being added, see any issues? on damage of an animal: if attacker's tool is lead: cancel event if {animals::%attacker%::listen} is true: send "Confirmed, you now own this %victim%."...
  11. G

    Solved Animal ownership script

    I'd like to make a script to allow players to own animals, and sell or transfer them. (e.g allowing a player to own 20 sheep to have on their farm) What would be the best way to do this?
  12. G

    Making a region where trees respawn

    A little ambitious, but I want to make a script to set a region with WorldGuard, then have trees spawn saplings at random places inside the region after being cut down. Could anyone help me out with this, assuming it's possible? Thanks.
  13. G

    Solved If statement behaves differently in on craft event and command event

    I've got an on craft event that checks whether or not an item can be found in an array, however, the if statement will always output the false statement. When making a command with the exact same code, I get the expected results. command /check <text>: trigger: if {list::*}...