Skip to content

Commit

Permalink
Add clickable holograms tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
OliverSchlueter committed Feb 16, 2024
1 parent 4876af8 commit c0457bb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Writerside/fp.tree
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
<toc-element topic="FH-Commands.md"/>
<toc-element topic="FH-API.md">
</toc-element>
<toc-element topic="FH-Tutorials.md">
<toc-element topic="FH-clickable-holograms.md"/>
</toc-element>
</toc-element>
<toc-element topic="Test.md">
<toc-element topic="Test-Markdown.md">
Expand Down
1 change: 1 addition & 0 deletions Writerside/topics/FH-Tutorials.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Tutorials
12 changes: 12 additions & 0 deletions Writerside/topics/FH-clickable-holograms.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Clickable holograms

Interactions with holograms is not a feature of FancyHolograms yet, but there is a workaround for this.

1. Create your hologram with the text you want.
2. Install [FancyNpcs](https://fancyplugins.de/FancyNpcs/download/)
3. Create a new npc and set the type to "INTERACTION" (`/npc type (npc name) INTERACTION`)
4. Remove the name tag of the npc (`/npc displayName (npc name) <empty>`)
5. Position the npc to the same location as the hologram (press F3+B to see the hitbox)
6. Modify the size of the hitbox to fit the hologram (`/npc attributes (npc name) (width/height) (size)`)
7. Add an interaction action to the
npc ([message, playerCommand, serverCommand](https://fancyplugins.de/docs/fn-commands.html#message))

0 comments on commit c0457bb

Please sign in to comment.