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

    Set name of inventory

    If it's a virtual inventory, that currently doesn't work without hacky hacks: https://github.com/SkriptLang/Skript/issues/1472 As for real inventories, like that of a chest, that should work by editing the name of the block - somehow - i had issues with that too
  2. jaylawl

    Solved How does one convert entity types to/from Skript

    What will this do? So the entire thing has to be EntityData instead of EntityType? nevermind the topic
  3. jaylawl

    Solved Scoreboard update for a player

    You should mention which addon youre using for scoreboards
  4. jaylawl

    Solved How does one convert entity types to/from Skript

    Because i'm trying to make an expression for the mob spawned by mob spawner tile entities. The return must be a skript entity type, and the input must be a bukkit entity type (enum).
  5. jaylawl

    Solved How to disable inventory swap?

    Are you talking about swapping main/off-hand items?
  6. jaylawl

    Solved How does one convert entity types to/from Skript

    So i'm trying to get the entity type that is being spawned by a mob spawner tile entity. Using this will return the Bukkit entity type just fine: BlockState state = block.getState(); CreatureSpawner spawner = (CreatureSpawner) state; return spawner.getSpawnedType(); However i'm unsuccessful...
  7. jaylawl

    Solved Special Skull

    You need SkStuff and then: set {_skinURLhere} to "eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvM2E0MzgxYTVhYjRhY2M2ZGU4ZDRlZWU3NjllYmE2YmFkYjJmMmI0ZTkzNDJhY2FlMjc1MDI5NWU2MDYwNGE1NyJ9fX0=" Which corresponds to this head...
  8. jaylawl

    Other How to make custom spawners using NBT

    Should propably append this: https://hub.spigotmc.org/javadocs/spigot/org/bukkit/block/CreatureSpawner.html
  9. jaylawl

    Solved Why is my add-on not working

    That makes sense, i was doing a weird mixture between trying everything from scratch by reading existing code - and then i "gave up" and went into lime's tutorial. I'm gonna go back to that and find what i missed, thank you /edit: Went back to the steps i accidentally skipped -now it works!
  10. jaylawl

    Solved Getting previous state of a block

    I'm glad it works! You should take precautions about which blocks get converted though. Because with this script, tile-entities will not be saved correctly. For example, if a placed player head is changed with your diamond hoe, it will lose all it's NBT data when it's placed back - so make sure...
  11. jaylawl

    Solved Special Skull

    If you want to use heads you can simply use the expression "skull of %player%". This will only work for heads based on player names. Heads with a Skin URL require some NBT magic. For that you can use SkStuff. https://minecraft-heads.com/ For NBT: set {_item} to player head with nbt...
  12. jaylawl

    Solved Freeze player

    set %player%'s walk speed to 0 This will still allow the player to move via jumping, which can be surpressed with some potion stuff.
  13. jaylawl

    Repair / duplicate minigame world

    Make a "master copy" of your gameworld that never get's touched by anybody but you or other staff. Each time players start a minigame, make a copy of that world with multiverse (which is a really fast process). Make sure no entities are in the master world. Multiverse copies entities exactly...
  14. jaylawl

    Solved Getting previous state of a block

    Try: on right click holding diamond hoe: loop blocks in radius 1 of clicked block: add loop-block's location to {_locations::*} add loop-block's type to {_types::*} set loop-block to diamond block wait 1 second loop {_locations::*}: set block at loc...
  15. jaylawl

    Solved Why is my add-on not working

    I'm taking my first steps in writing actual java. Messing around with skript-mirror long enough gave me the balls to try, good times. This code works, there are no errors, everything compiles fine. But the expression i added is not registered ingame - skript says "can't understand this...
  16. jaylawl

    health Crystal

    nah i know the feeling... i tend to overthink things at times too
  17. jaylawl

    health Crystal

    on right click on player holding red dye: heal the event-entity by 5 damage event-player by 5
  18. jaylawl

    Solved NBT to a Entity

    Edit the tag of the first post :D
  19. jaylawl

    Solved NBT to a Entity

    Hm, that's correct syntax. Have you made sure that SkStuff is loaded and functional?
  20. jaylawl

    Solved NBT to a Entity

    What are you using for NBT? SkStuff?