Hologram

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

  • LOOKING FOR A VERSION OF SKRIPT?

    You can always check out skUnity Downloads for downloads and any other information about Skript!

Status
Not open for further replies.

Hartvig

Member
Apr 18, 2017
39
1
0
22
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_language.skript:
command /holo:
    trigger:
        create holo object "&2Hologram!;ItemStack:Diamond Sword;&9test 1!;&6Test" with id "holo.1" at block above player for 20 seconds


on hologram touch:
    make player execute command "k"
 
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_language.skript:
command /testholo:
    trigger:
        create holo object "&2Hologram!;&9test 1!;&6Test" with id "holo.1" at block above player
        wait 20 seconds
        delete holo object "holo.1"
 
on hologram touch:
    if event-string is "holo.1":
        #doStuff
        broadcast "Worked"
    else:
        broadcast "Not Worked"
 
Thank you it works, but it also say "Unknown command" in the chat, even if the command works fine.
 
Make sure to include the / at the beginning of the command
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_language.skript:
command /testholo:
    trigger:
        create holo object "&2Klik her for at tage dit kit!" with id "holo.1" at block above player
        wait 20 seconds
        delete holo object "holo.1"
 
on hologram touch:
    if event-string is "holo.1":
        execute player command "/k"
 
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
 
Status
Not open for further replies.