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

    Packet event and setting blocks to air error

    on packet event play_client_arm_animation: I use this code to get when the player uses the mouse button(s) to run a piece of code. In that code I have this line: set block at location of {_loc} to air which locates itself inside of a function. When I try to run this, I get a stacktrace...
  2. Hyao

    Solved SkDragon syntax doesn't work with no errors

    drawDot count 25, particle "smoke", material redstone block, XYZ 0.5, 0.5, 0.5, center location of player's head, visibleRange 32, pulseDelay 2, keepFor 1 tick drawDot count 50, particle "explosion", XYZ 1, 1, 1, center location of player's head, visibleRange 32, keepFor 1 tick drawDot count...
  3. Hyao

    Solved 1.12 NBT error

    Using Bensku's dev32 version, and the other plugins are all downloaded from resources and constantly kept updated. I'm trying to give the player a sword, but I can't seem to add NBT. I've tried the way I've always done it, give 1 stone sword with nbt "{Whatever}" to player But the error I get...
  4. Hyao

    is blocking?

    Is there any event or any workaround for shield blocking? I'm trying to incorporate skyrim-like skills into my game but I don't quite know how to check for blocking. I could check for if the player is right clicking, takes damage but takes no damage - but I'm not sure if that would work...
  5. Hyao

    Solved Contains/is doesn't work.

    Skript 2.2-dev29 by Bensku Unsure about addons I use, if you need any other versions - ask, but should be on the most recent ones found under "Resources ▼". I have a string, being set like this: set {curEvo.%{_id}%} to "chicken" And I check it like this, but it returns NOTHING, not a single...
  6. Hyao

    Solved Invisible mobs without particles?

    Heyo, trying to make custom mobs by spawning invisible silverfish and making whatever teleport to them (armor stands, items, you name it) but can't seem to make them invisible without particles. The umbaska apply [potion of] %potioneffecttype% [potion] [[[of] tier] %-number%] to...
  7. Hyao

    Calling functions from other scripts?

    Its really just as the title says. I'd like to call functions from a "main function script" from my other, "caller" scripts. Is this possible? Is it just as simple as having to first load the function script and then loading the one that calls it? Thanks in advance.
  8. Hyao

    The best way to a written book's heart?

    So, I'm currently trying to give my players a sort of "quest log", which is a written book in their inventory. What I have right now is setting their 6th slot to a written book, then momentarily changing their current hotbar slot to 6 - then editing the book. My syntax is SkMundo's set page 1...
  9. Hyao

    Solved Read line (variable) in file

    This is my code set {_npc} to npc from entity loop-entity set {_npcId} to id of npc {_npc} set {_line} to ({_npcId} + 1) set {_name} to line {_line} in file "/plugins/chi/npcName.txt" When I debug it, npcId returns 0 - good. line returns 1 - good. name returns.. <none>. I've tried parsing...
  10. Hyao

    Solved Store data in entities(armor stands)

    Say I want a hologram plugin, I would spawn some invisible armor stands and whatnot, but what if I wanted to ID them. I can add some NBT, but that goes away if it's invalid, doesn't it? I've tried thinking of giving it variables like you do with %player% and %uuid of player%, but they don't seem...
  11. Hyao

    Loop blocks in front of the player?

    Using Bensku's fork for mc 1.12 and unsure which addons this uses, but downloaded them all from "resources" yesterday. My problem is simple, really, loop all blocks in front of the player: Doesn't work. loop all blocks in direction of the player: doesn't work either. Does anyone know why this...
  12. Hyao

    *Current* target block?

    Hello, I'm using Bensku's fork (mc1.12) and have downloaded each of used addons today, so should be up to date on all. I'm trying to make the player see a blue block when there's an air block, a red when not, but all in all it should appear above the player's target block. Here's what I have...
  13. Hyao

    Solved Fake lightning effect?

    The syntax (create|strike) (fake|ultra|no sound) fake lightning at %location% doesn't seem to work and return a "not a real effect" error. Is there a workaround, a particle I can use or anything that I can do to make damage-and-burn-less lightning? Thanks in advance.
  14. Hyao

    Not a valid item data

    Skript 2.2 with bensku's 1.12 fork, trying to give the player a variable-item. My first line declares the item: set {_eggType} to "%{_dragonElement::4}% spawn egg" parsed as item type (note: also tried item, itemtype, and setting it to item type on a different line) Then it gives the item...
  15. Hyao

    Solved Adding NBT to entities?

    So, I've tried to work with SkStuff, but it doesn't seem to work and just returns an error. There's also a review on its resource page about how it doesn't work in 1.12 - is that so? Am I just doing it wrong? I've got so much: add "{Invulnerable:1}" to nbt of {_as} but it returns Can't...
  16. Hyao

    Sort strings in a list

    So, I'm recreating Tekkit Classic and I'm currently making the Equivalent Exchange loot balls. Basically, something destroys some blocks -> an ender pearl pops out with a list stored inside it of each block destroyed. As of current, it's all saved - in strings - like so: dirt, dirt, dirt...
  17. Hyao

    Check for redstone updates around a block

    Hello! I'm trying to create custom TNT by using orange wool, and I was wondering if there's a way to detect if the block is recieving power somehow. Yes, I could check every 10 ticks or so for redstone blocks around it, but how can I check for on-buttons or on-levers, or even on/offline signals...
  18. Hyao

    Solved Last dropped item

    Using drop an ender pearl named "&fLoot Ball" at {_dropLoc} how could I then target that item? To, say, add variables to it? Last dropped item doesn't work, and last spawned entity doesn't want to work either. Any suggestions would be appreciated.
  19. Hyao

    Named items in recipes

    So, using named items in recipes register new shaped recipe for red dye named "&fAlchemical Coal" using popped chorus fruit named "&fPhilosopher's Stone", coal, air, coal, coal, air, coal, air, air doesn't work. It either works with any item specified - named or not - or doesn't work at all. Is...
  20. Hyao

    Solved Armor stand location

    function spawnEntity(t : text, l : location, v: text): if "%{_t}%" is "crook": if "%{_v}%" is "1": spawn a chicken at {_l} set {_e} to last spawned entity clear all pathfinder goals of {_e} add pathfinder goal wander, speed 1 to {_e}...