#Hologram
1 messages · Page 1 of 1 (latest)
yeah
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
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
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
whats the diffrencee on local function and non?
it says the function rmb does not excist
local function can only be accessed within the file itself and cannot be used outside the file
doesnt work
if you are trying to use the function in another file, simply remove the local part
what does it say?
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
1.8.9 mc and skript
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
k
rq
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
set {_l} to player's target block
set {_l}'s y-coords to {_l}'s y-coords + 1
teleport player to {_l}
well replace + 1 with + 2
k ty
np
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"
use this to change the position of the teleport target
done
mb
?
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
wat ;-;
erm
its not english