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.

Help with skript-holo

Discussion in 'Skript' started by Last_Minecraft, Oct 13, 2020.

Thread Status:
Not open for further replies.
  1. Last_Minecraft

    Joined:
    Jul 28, 2020
    Messages:
    10
    Likes Received:
    0
    Hello, I am creating a skript where you create a hologram.
    Code (Text):
    1. command /civilization:
    2.     permission: civ.view
    3.     trigger:
    4.         if {civce.u} is true:
    5.             open virtual chest inventory with size 5 named "&eCIV&3&lCRAFTER &8| &7Menu" to player
    6.             format gui slot 20 of player with glowing diamond pickaxe named "&f&lACTION" with lore "&7Click on this option for actions:", and "   &7&l|&3Select City", and "   &7&l|&3Select Unit", and "   &7&l|&3Talk - Others" to run:
    7.                 open virtual chest inventory with size 3 named "&eCIV&3&lCRAFTER &8| &f&lACTION MENU" to player
    8.                 format gui slot 11 of player with brick named "&fCITY" with lore "&fClick for city options." to run:
    9.                     open virtual chest inventory with size 3 named "&e&lCIV&3&lCRAFTER &8| &f&lCITY ACTIONS" to player
    10.                     format gui slot 11 of player with minecart with chest named "&f&lCITY" with lore "&fCreate a city" to close:
    11.                         if block under player is grass block:
    12.                             if block under player is not sand:
    13.                                 if block under player is not red sand:
    14.                                     if block under player is not snow block:
    15.                                         set block at player's location to iron trapdoor
    16.                                         send "&eCIV&3&lCRAFTER &8| &7Enter your city's name"
    17.                                         create a new hologram with lines "&fCity &8| &6%{civ.u}%" and "&7This is a city"
    18.                                         stop
    19.                         else:
    20.                             send "&eCIV&3&lCRAFTER &8| &7You can't found a city here, find a land."
    But how to create a hologram that can be few blocks above player?
     
    #1 Last_Minecraft, Oct 13, 2020
    Last edited: Oct 13, 2020
  2. Wynnevir

    Wynnevir Well-Known Member

    Joined:
    Jul 9, 2017
    Messages:
    1,016
    Likes Received:
    62
    Is it just the position of the hologram you're having trouble with? If so try this, assuming you're using skript holo addon from the syntax.
    Code (Text):
    1. create a new hologram with lines "&fCity &8| &6%{civ.u}%" and "&7This is a city" 3 blocks above player
     
Thread Status:
Not open for further replies.

Share This Page

Loading...