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.

Solved how to i make holograms that have multiple lines

Discussion in 'Skript' started by Das3tins, May 1, 2020.

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

    Das3tins Member

    Joined:
    May 1, 2020
    Messages:
    10
    Likes Received:
    1
    So, am familiar to skript but I don’t know how to make holograms that have multiple lines and last forever, and I saw the docs about it but it didn’t make sense. please help
     
  2. Abdera7mane

    Abdera7mane Active Member

    Joined:
    Aug 18, 2019
    Messages:
    56
    Likes Received:
    7
    which addon are you using for holograms ?
    anyway Holographic Display uses ; to break the text line, example:
    • using SkRayFall:
    Code (Text):
    1. create hologram "Line1;Line2;Line3" at player for 10 seconds
    • using skript-holo you can just create a list of strings:
    Code (Text):
    1. create holo with lines "line1", "line2" and "line3" at player and store in {myHologram}
    now if you want to update a line of a hologram, you can use this effect:
    • using SkRayFall:
    Code (Text):
    1. set text in line x of holo "hologram_id" to "new value"
    • using skript-holo:
    Code (Text):
    1. set line x of holo {myHologram} to "new value"
     
    • Like Like x 1
  3. Das3tins

    Das3tins Member

    Joined:
    May 1, 2020
    Messages:
    10
    Likes Received:
    1
    I use skript-holo, but how do i make it so i can make a hologram on a specific block above it 1 block, I can get the location in a variable, this doesn’t skript doesn’t work:
    Code (Text):
    1. create a new holo with lines “&f%player%’s &6Bitcoin &cMiner” and “&7Right-click to open” above 1 block at {_locationtemp} and store in {minerholo.%player%}
    sorry i have bad english
     
  4. Abdera7mane

    Abdera7mane Active Member

    Joined:
    Aug 18, 2019
    Messages:
    56
    Likes Received:
    7
    here is the correct syntax:
    Code (Text):
    1. 1 block above {_locationtemp}
     
  5. Das3tins

    Das3tins Member

    Joined:
    May 1, 2020
    Messages:
    10
    Likes Received:
    1
    ok here is what i wrote its shows an error
    Code (Text):
    1. create a new holo with lines “&6Bitcoin &cMiner” and “&7Right-click to open” 1 block above {_localtemp} and store in {miners.holo.%player%}
    i can’t show the error because the parser became broken but i remember it says “Variables cannot be used here” some thing like that
    --- Double Post Merged, May 3, 2020, Original Post Date: May 3, 2020 ---
    actually the parser JUST STARTING WORKING IDK WHY
    --- Double Post Merged, May 3, 2020 ---
    upload_2020-5-3_14-31-17.jpeg
    --- Double Post Merged, May 3, 2020 ---
    also can you solve this not only holograms
    the gui other stuff
    Code (Text):
    1. options:
    2.     p: &6Bitcoin &7>>&r
    3.  
    4. command /bitcoin [<text>] [<number>]:
    5.     permission: bitcoin.use
    6.     permission message: @p &cYou don't have no permission!
    7.     trigger:
    8.         if arg 1 is "bal" or "balance":
    9.             message "@p &aBalance: &e%{bitcoins.%player%}% &6bitcoin(s)"
    10.         if arg 1 is "buy" or "purchase":
    11.             if arg 2 is a number:
    12.                 set {_totalbuy} to {bitcoin.buyvalue} * arg 2
    13.                 if balance of player >= {_totalbuy}:
    14.                     remove {_totalbuy} from balance of player
    15.                     add arg 2 to {bitcoins.%player%}
    16.                     message "@p &6%arg 2% bitcoin(s) has been added to your account!"
    17.                 else:
    18.                     message "@p &cInsufficient funds!"
    19.             else:
    20.                 message "@p &cUsage: /bitcoin buy/purchase [amount]"
    21.         if arg 1 is "sell":
    22.             if arg 2 is a number:
    23.                 if {bitcoins.%player%} >= arg 2:
    24.                     set {_totalsell} to {bitcoin.sellvalue} * arg 2
    25.                     add {_totalsell} to balance of player
    26.                     remove arg 2 from {bitcoins.%player%}
    27.                     message "@p &eSold %arg 2% bitcoins!"
    28.                     message "@p &a%arg 2% bitcoin(s) has been removed from your account"
    29.                 else:
    30.                     message "@p &cهnsufficient bitcoins!"
    31.             else:
    32.                 message "@p &cUsage: /bitcoin sell [amount]"
    33.         if arg 1 is not set:
    34.             message "&7-----------------------------------------------------------"
    35.             message "&6/bitcoin help &rTo display this"
    36.             message "&6/bitcoin buy [amount] &rTo buy bitcoins"
    37.             message "&6/bitcoin sell [amount] &rTo sell bitcoins"
    38.             message "&6/bitcoin bal/balance &rTo see how much bitcoins you have"
    39.             message "&6/bitcoin value &rTo see the value of the bitcoin"
    40.             message "&6/bitcoin buyminer [amount] &rTo buy bitcoin miners"
    41.             message "&7-----------------------------------------------------------"
    42.         if arg 1 is "help":
    43.             message "&7-----------------------------------------------------------"
    44.             message "&6/bitcoin help &rTo display this"
    45.             message "&6/bitcoin buy [amount] &rTo buy bitcoins"
    46.             message "&6/bitcoin sell [amount] &rTo sell bitcoins"
    47.             message "&6/bitcoin bal/balance &rTo see how much bitcoins you have"
    48.             message "&6/bitcoin value &rTo see the value of the bitcoin"
    49.             message "&6/bitcoin buyminer [amount] &rTo buy bitcoin miners"
    50.             message "&7-----------------------------------------------------------"
    51.         if arg 1 is "value":
    52.             open virtual chest inventory with size 3 named "&6Bitcoin &7>> &6Bitcoin Value" to player
    53.             format gui slot 0 of player with paper named "&aBuy Value -> $%{bitcoin.buyvalue}%"
    54.             format gui slot 1 of player with paper named "&eSell Value -> $%{bitcoin.sellvalue}%"
    55.         if arg 1 is "buyminer":
    56.             if arg 2 is a number:
    57.                 set {_totalminer} to 25000000 * arg 2
    58.                 if balance of player >= {_totalminer}:
    59.                     remove {_totalminer} from balance of player
    60.                     loop arg 2 times:
    61.                         give player 1 of redstone block named "&6Bitcoin &cMiner" with lore "&7Gives you bitcoins when placed"
    62.                 else:
    63.                     message "@p &cInsufficient funds!"
    64.             else:
    65.                 message "@p &cUsage: /bitcoin buyminer [amount]"
    66.  
    67.  
    68. on place:
    69.     if player's tool is redstone block named "&6Bitcoin &cMiner" with lore "&7Gives you bitcoins when placed":
    70.         add location of event-block to {miners.global::*}
    71.         add 1 to {minersplaced.%player%}
    72.         add location of event-block to {miners.%player%::*}
    73.         add location of event-block to {_localtemp}
    74.         create a new holo with lines "&6Bitcoin &cMiner" and "&7Right-click to open" 1 block above {_localtemp} and store in {minersholo.%player%}
    75.  
    76. on break:
    77.     if event-block is redstone block:
    78.         if location of event-block is {miners.global::*}:
    79.             cancel event
    80.  
    81.  
    82.  
    83.  
    84. on right click on a redstone block:
    85.     if location of event-block is {miner.%player%::*}:
    86.         open virtual chest inventory with size 3 named "&f%player%'s &6Bitcoin &cMiner" to player
    87.         format gui slot 0 of player with chest named "&eCollect all &6%{bitcoin.generated.%player%}% bitcoin(s)" to close then run:
    88.             add {bitcoin.generated.%player%} to {bitcoins.%player%}
    89.             wait 5 ticks
    90.             set {bitcoin.generated.%player%} to 0
    91.         format gui slot 27 of player with barrier named "&cRemove Miner" to close then run:
    92.             give player 1 of redstone block named "&6Bitcoin &cMiner" with lore "&7Gives you bitcoins when placed"
    93.             remove 1 from {minersplaced.%player%}
    94.             message "@p &cRemoved Miner"
    95.  
    96.  
    97.  
    98.  
    99.  
    100.  
    101.  
    102. every 10 minutes:
    103.     set {bitcoin.buyvalue} to a random number between 5000 and 1000000
    104.     set {bitcoin.sellvalue} to a random number between 50 and 1000000
    105.  
    106.  
    107.  
    108.  
    109.  
    110. every 10 minutes:
    111.     loop-all-players-in-all-worlds:
    112.         if {minersplaced.%player%} >= 1:
    113.             loop {minersplaced.%player%} times:
    114.                 add 1 to {bitcoin.generated.%player%} to loop-player


    upload_2020-5-3_14-36-10.jpeg
     
  6. Abdera7mane

    Abdera7mane Active Member

    Joined:
    Aug 18, 2019
    Messages:
    56
    Likes Received:
    7
    if I'm right the parser doesn't support skript-holo syntaxes yet
    give this a try:
    Code (Text):
    1. create a new holo with lines “&6Bitcoin &cMiner” and “&7Right-click to open” at (1 block above {_localtemp}) and store in {miners.holo.%player%}
     
  7. Das3tins

    Das3tins Member

    Joined:
    May 1, 2020
    Messages:
    10
    Likes Received:
    1
    if it doesn’t support it maybe it works so i will mark this as solved
     
Thread Status:
Not open for further replies.

Share This Page

Loading...