I bring to you a much improved and updated version of a hologram maker script that I used years and years ago.
Drag and drop into your scripts folder, reload and start creating holograms!
Holograms are created by using /holo [displayname]
NEW:
The old hologram script only had a feature for creating holograms, but not deleting them. This would leave holograms floating all over the server that cant be deleted because they are attached to an invisible entity (armor stand).
I've improved upon this and brought the wonderful /delholo command into the mix!
Holograms are deleted by looking at the holo you want to delete and typing /delholo [displayname]
Note: When deleting holograms, if there are spaces in the name, you will need to use "Quotes" to handle the [displayname] properly. (e.g. /delholo "this hologram has spaces")
You can give players permissions to use the commands too!
Permission nodes provided:
holo.create
holo.delete
Holos are enabled for ops by default.
here's the haste link: https://one.denizenscript.com/haste/78912
and here's the raw script:
Drag and drop into your scripts folder, reload and start creating holograms!
Holograms are created by using /holo [displayname]
NEW:
The old hologram script only had a feature for creating holograms, but not deleting them. This would leave holograms floating all over the server that cant be deleted because they are attached to an invisible entity (armor stand).
I've improved upon this and brought the wonderful /delholo command into the mix!
Holograms are deleted by looking at the holo you want to delete and typing /delholo [displayname]
Note: When deleting holograms, if there are spaces in the name, you will need to use "Quotes" to handle the [displayname] properly. (e.g. /delholo "this hologram has spaces")
You can give players permissions to use the commands too!
Permission nodes provided:
holo.create
holo.delete
Holos are enabled for ops by default.
here's the haste link: https://one.denizenscript.com/haste/78912
and here's the raw script:
Code:
Create_Holo:
type: command
debug: false
name: holo
usage: /holo
aliases:
- hc
description: Will make holograms
permission: holo.create
script:
- if !<player.has_permission[<context.permission>] && !<player.is_op>:
- narrate "<&3><&l>You are missing a permission! <&r><&2><context.permission>" target:<player>
- stop
- if <context.args.size> == 0:
- narrate "<&3><&l>You need to define a name for the hologram <&r><&3>(example- <&r><&2>/holo myholo<&3><&l>)"
- stop
- else:
- define title <context.raw_args.parse_color>
- spawn armor_stand <player.location> save:stand
- adjust <entry[stand].spawned_entity> visible:false
- adjust <entry[stand].spawned_entity> custom_name:<[title]>
- adjust <entry[stand].spawned_entity> custom_name_visible:true
- actionbar "<&3><&l>Hologram created with name <&2><def[title]><&3>."
Delete_Holo:
type: command
debug: false
name: delholo
usage: /delholo
aliases:
- dh
description: Will remove holograms
permission: holo.delete
script:
- if <context.args.size> == 0:
- narrate "<&3><&l>You need to define a name for the hologram <&r><&3>(example- <&r><&2>/dh myholo<&3>)"
- stop
- else:
- define targholo "<context.args.get[1]>"
- if <player.has_permission[<context.permission>] || <player.is_op>:
- if <player.target.custom_name> == <def[targholo]>:
- remove <player.target>
- actionbar "<&3><&l>Hologram removed" target:<player>
- else:
- narrate "<&3><&l>Target custom name mismatch" target:<player>
- stop
- else:
- narrate "<&3><&l>You are missing a permission! <&r><&2><context.permission>" target:<player>
- stop