1. 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!

  2. LOOKING FOR A VERSION OF SKRIPT?

    You can always check out our Wiki for downloads and any other information about Skript!

Dismiss Notice
This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Hologram

Discussion in 'Skript' started by Hartvig, Oct 21, 2017.

Tags:
Thread Status:
Not open for further replies.
  1. Hartvig

    Hartvig Member

    Joined:
    Apr 18, 2017
    Messages:
    39
    Likes Received:
    1
    Want to make a holo object, with an id. And when you rightclich a holo object with a special id, it runs a command.

    Erorr:
    https://gyazo.com/305fb5b73d719ffb4cf11082b09f8de1
    Code (Skript):
    1. command /holo:
    2.     trigger:
    3.         create holo object "&2Hologram!;ItemStack:Diamond Sword;&9test 1!;&6Test" with id "holo.1" at block above player for 20 seconds
    4.  
    5.  
    6. on hologram touch:
    7.     make player execute command "k"
     
  2. JamesMB

    Supporter ++

    Joined:
    Jan 25, 2017
    Messages:
    13
    Likes Received:
    1
    Had to get a little help myself from @Pikachu but he told me that you can use event-string within the "on hologram touch" event

    so I made this little test skript and works perfectly

    First problem is the "create holo object" effect doesn't have "for x seconds" in the syntax that is only for "create hologram" which is temporary..
    Also just to add "ItemStack:Item" is not supported with holo object either

    Code (Skript):
    1. command /testholo:
    2.     trigger:
    3.         create holo object "&2Hologram!;&9test 1!;&6Test" with id "holo.1" at block above player
    4.         wait 20 seconds
    5.         delete holo object "holo.1"
    6.  
    7. on hologram touch:
    8.     if event-string is "holo.1":
    9.         #doStuff
    10.         broadcast "Worked"
    11.     else:
    12.         broadcast "Not Worked"
     
  3. Hartvig

    Hartvig Member

    Joined:
    Apr 18, 2017
    Messages:
    39
    Likes Received:
    1
    Thank you it works, but it also say "Unknown command" in the chat, even if the command works fine.
     
  4. JamesMB

    Supporter ++

    Joined:
    Jan 25, 2017
    Messages:
    13
    Likes Received:
    1
    Make sure to include the / at the beginning of the command
     
  5. Hartvig

    Hartvig Member

    Joined:
    Apr 18, 2017
    Messages:
    39
    Likes Received:
    1
    I have done that, it works fine as i said, but it still says "unkown command" i also tested your code, and it said "unkown command" when it broadcasted.

    Code (Skript):
    1. command /testholo:
    2.     trigger:
    3.         create holo object "&2Klik her for at tage dit kit!" with id "holo.1" at block above player
    4.         wait 20 seconds
    5.         delete holo object "holo.1"
    6.  
    7. on hologram touch:
    8.     if event-string is "holo.1":
    9.         execute player command "/k"
     
  6. AngDrew

    AngDrew Member

    Joined:
    Sep 23, 2017
    Messages:
    14
    Likes Received:
    0
    Code (Skript):
    1. make player run command "/k" as OP
    maybe this can help
     
  7. AlvianMinecraft

    Joined:
    Jun 23, 2017
    Messages:
    3
    Likes Received:
    0
    Can someone help me with the hologram too? Everytime I add a create holo object or delete holo object it won't work

    19.10 19:00:43 [Server] ERROR #!#! 19.10 19:00:43 [Server] ERROR #!#! [Skript] Severe Error: 19.10 19:00:43 [Server] ERROR #!#! Could not load Scenarios.sk 19.10 19:00:43 [Server] ERROR #!#! 19.10 19:00:43 [Server] ERROR #!#! If you're developing an add-on for Skript this likely means that you have done something wrong. 19.10 19:00:43 [Server] ERROR #!#! If you're a server admin however please go to http://dev.bukkit.org/server-mods/skript/tickets/ 19.10 19:00:43 [Server] ERROR #!#! and check whether this error has already been reported. 19.10 19:00:43 [Server] ERROR #!#! If not please create a new ticket with a meaningful title, copy & paste this whole error into it, 19.10 19:00:43 [Server] ERROR #!#! and describe what you did before it happened and/or what you think caused the error. 19.10 19:00:43 [Server] ERROR #!#! If you think that it's a trigger that's causing the error please post the trigger as well. 19.10 19:00:43 [Server] ERROR #!#! By following this guide fixing the error should be easy and done fast. 19.10 19:00:43 [Server] ERROR #!#! 19.10 19:00:43 [Server] ERROR #!#! Stack trace: 19.10 19:00:43 [Server] ERROR #!#! ch.njol.skript.SkriptAPIException: No class info found for animation 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.registrations.Classes.getClassInfo(Classes.java:242) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.lang.SkriptParser.getExprInfo(SkriptParser.java:1394) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1115) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.lang.SkriptParser.parse_i(SkriptParser.java:1088) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:220) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.lang.SkriptParser.parse(SkriptParser.java:175) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.lang.Statement.parse(Statement.java:60) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:650) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:56) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.lang.Conditional.<init>(Conditional.java:46) 19.10 19:00:43 [Server] ERROR #!#! atch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:736) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.lang.TriggerSection.<init>(TriggerSection.java:56) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.lang.Conditional.<init>(Conditional.java:46) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.ScriptLoader.loadItems(ScriptLoader.java:736) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.ScriptLoader.loadScript(ScriptLoader.java:510) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.ScriptLoader.loadScripts(ScriptLoader.java:268) 19.10 19:00:43 [Server] ERROR #!#! at ch.njol.skript.SkriptCommand.onCommand(SkriptCommand.java:155) 19.10 19:00:43 [Server] ERROR #!#! atorg.bukkit.command.PluginCommand.execute(PluginCommand.java:44) 19.10 19:00:43 [Server] ERROR #!#! atorg.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:181) 19.10 19:00:43 [Server] ERROR #!#! at org.bukkit.craftbukkit.v1_7_R4.CraftServer.dispatchCommand(CraftServer.java:767) 19.10 19:00:43 [Server] ERROR #!#! atnet.minecraft.server.v1_7_R4.PlayerConnection.handleCommand(PlayerConnection.java:1043) 19.10 19:00:43 [Server] ERROR #!#! at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:880) 19.10 19:00:43 [Server] ERROR #!#! at net.minecraft.server.v1_7_R4.PacketPlayInChat.a(PacketPlayInChat.java:28) 19.10 19:00:43 [Server] ERROR #!#! at net.minecraft.server.v1_7_R4.PacketPlayInChat.handle(PacketPlayInChat.java:65) 19.10 19:00:43 [Server] ERROR #!#! at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:186) 19.10 19:00:43 [Server] ERROR #!#! atnet.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) 19.10 19:00:43 [Server] ERROR #!#! atnet.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) 19.10 19:00:43 [Server] ERROR #!#! at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) 19.10 19:00:43 [Server] ERROR #!#! at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) 19.10 19:00:43 [Server] ERROR #!#! at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) 19.10 19:00:43 [Server] ERROR #!#! at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) 19.10 19:00:43 [Server] ERROR #!#! 19.10 19:00:43 [Server] ERROR #!#! Version Information: 19.10 19:00:43 [Server] ERROR #!#! Skript: 2.2-Fixes-V8b 19.10 19:00:43 [Server] ERROR #!#! Bukkit: 1.7.10-R0.1-SNAPSHOT 19.10 19:00:43 [Server] ERROR #!#! Minecraft: 1.7.10
     
Thread Status:
Not open for further replies.

Share This Page

Loading...