#Hologram

1 messages · Page 1 of 1 (latest)

fluid remnant
#

uh creating it?

steel escarp
#

yeah

fluid remnant
#

hold on let me cook

#

this?

on right click:

    RMB_Block(event-block, "Clicked!")

local function RMB_Block(l: location, t: text):

    spawn text display at {_l}
    set {_summon} to last spawned text display
    set text of the last spawned text display to {_t}
    set billboard of {_summon} to center
    wait 15 ticks
    kill {_summon}
#

obv idk if it works

#

havent tested

fluid remnant
#

yh you need that i believe

#

not too sure

#

cant remember

steel escarp
#

k

#

ill test soon

#

erm

#

doesnt work

#

errors:

#

spawn text dispaly at {_i}
set summon to last spawend text display
set text of the last spawned text display to t set bill board of summon to center

fluid remnant
#

here

on right click:

    RMB_Block(event-player's target block, "Clicked!")
    send "CLICKED" to event-player

local function RMB_Block(l: location, t: text):


    broadcast {_l}
    
    set {_l}'s y-coords to {_l}'s y-coords + 1

    spawn text display at {_l}
    set {_summon} to last spawned text display
    set text of the last spawned text display to {_t}
    set billboard of {_summon} to center
    wait 1 seconds
    kill {_summon}
#

this works

#

tested it on my server

steel escarp
#

whats the diffrencee on local function and non?

#

it says the function rmb does not excist

fluid remnant
#

local function can only be accessed within the file itself and cannot be used outside the file

steel escarp
#

doesnt work

fluid remnant
#

if you are trying to use the function in another file, simply remove the local part

#

what does it say?

steel escarp
#

and i have placed it above the on rightclick

fluid remnant
#

show me the event being triggered

#

how are you using this?

#

if you making it right click:
on right click:

RMB_Block(event-player's target block, "Clicked!")
#

how does it not understand lmao

steel escarp
fluid remnant
#

what version are you on?

#

skript and minecraft

steel escarp
#

1.8.9 mc and skript

fluid remnant
#

OHH

#

it might not be a thing in 1.8.9

#

since my server is in 1.21.4

#

it is only available in skript 2.10+

#

idk how to help you from here

steel escarp
#

k

steel escarp
#

how od i teleport a player to 2 blocks above targeted block

#

it works with block above targeted block

#

and how do i set a variable to half block above

fluid remnant
#

well replace + 1 with + 2

steel escarp
#

k ty

fluid remnant
#

np

steel escarp
#

tryna do this rq

#

but it doesnt work

#

command /htest:
trigger:
set {_1} to block above targeted block
set {_2} to block above {_2}
teleport player to block above {_2}
wait 1 tick
execute console command "sudo %player% decentholograms create test test"

fluid remnant
#

wat ;-;

#

no??

#

you didnt do what i sent at all

fluid remnant
steel escarp
steel escarp
#

well this works hope its ok:D

#

nvm ill do what u did

fluid remnant
#

lol

#

does it work?

steel escarp
#

yuh

#

ill send soon

#

what i used it for

fluid remnant
#

?

steel escarp
# fluid remnant ?

else if arg-1 is "opret":
if arg-2 is set:
if arg-3 is set:
if {vagtpost::%location of target block%} isn't set:
set {vagtpost::%location of target block%} to arg-2
send "{@p} Du har nu oprettet en vagtpost (&a%arg-2%&f)"
set {_target} to targeted block
set {_loc} to location of {_target}
add 1 to y-coordinate of {_loc}
teleport player to {_loc}
set {_loc} to location of target block
add 1 to y-coordinate of {_loc}
set {vagtpostloc::%arg-2%} to {_loc}
set {_holoName} to arg-2
set {vagtpostholo::%arg-2%} to {_holoName}
execute console command "sudo %player% decentholograms create %{_holoName}% &b{@p} %arg-3%"
else:
send "{@p} Der er allerede en vagtpost her."
else:
send "{@p} Brug: /vagtpost opret <navn> <tekst>"
else:
send "{@p} Brug: /vagtpost opret <navn> <tekst>"

    else if arg-1 is "fjern":
        if arg-2 is not set:
            if {vagtpost::%location of target block%} is set:
                set {_name} to {vagtpost::%location of target block%}
                set {_holoName} to {vagtpostholo::%{_name}%}
                execute console command "sudo %player% decentholograms remove %{_holoName}%"
                delete {vagtpost::%location of target block%}
                delete {vagtpostholo::%{_name}%}
                delete {vagtpostloc::%{_name}%}
                send "{@p} &cDu har nu slettet vagtposten og dens hologram."
            else:
                send "{@p} Dette er ikke en vagtpost."
#

there it was what i used it for

fluid remnant
#

wat ;-;

steel escarp
#

erm

fluid remnant
#

its not english

steel escarp
#

its like a prison server

#

im making

#

2sec

#

its a guard post"

#

which when i create

#

it adds the name of the post and a hologram

#

so it says the name of it

#

and so its not needed to do manually

#

yay:D

#

well thanks for your help

fluid remnant
#

it works?

#

sorry for the delay i was trying to fix some api scripts ;-;