Page 1 of 1

Hologram Maker

Posted: July 31st, 2020, 7:34 pm
by Moonstone
Ok, so I'm not the best at Denizen, but I made a script that I thought would be useful!

All you have to do is type a message after the command with color and boom! You have a hologram!

Example usage:
/hologrammaker Hello there &4Moonstone!

And a hologram should appear with the text: Hello there Moonstone!
That's it!

Here is the haste link:

Here is the raw code:

Code: Select all

    type: command
    name: hologrammaker
    usage: /hologrammaker [text to be displayed]
    - hmaker
    - hologram
    - holomaker
    - holo
    description: Will make holograms
    permission: moonstone.admin.hologram
    tab completions:
        1: AnyTextHere
        - if !<player.has_permission[moonstone.admin.hologram]>:
            - stop
        - define message <context.raw_args.parse_color>
        - spawn <entity[armor_stand]> <player.location> save:stand
        - adjust <entry[stand].spawned_entity> visible:false
        - adjust <entry[stand].spawned_entity> custom_name:<[message]>
        - adjust <entry[stand].spawned_entity> custom_name_visible:true

Re: Hologram Maker

Posted: August 1st, 2020, 9:08 am
by mcmonkey
- You can remove the adjust lines and simply use properties on the spawn line
- the tag <entity[armor_stand]> is entirely redundant, just do armor_stand
- you should probably enable marker, disable gravity, ...
- This is usually a case where an entity script might actually be best... make a hologram entity script that has all the relevant armor stand properties for a hologram, so you can just - spawn hologram[custom_name=<[message]>] <player.location><
- You should probably get rid of that weird tab completion
- You should probably remove the redundant has_permission check