#trying to make a skript but no idea how to start
1 messages ยท Page 1 of 1 (latest)
like when i mine that iron a specific item (raw iron in this case) will go down the conveyor belt and stop at emerald
just summon a iron ore and remove that is in there
i want to be able to make it 'slide' on the conveyor
block displays
how do i use block displays
Represents the block data of a Block Display Entity.
See Display Entity Data on McWiki for more details.
i think this
go in docs and search displayentity ull find sumn i think
yes
just make it slide 1 direction
ion have the code but its smth like this
while {_display} is alive:
set display teleport duration to 1
if block below {_display} is shuker box[facing=west]:
teleport {_display} to {_display}'s location ~ vector(1, 0, 0 )
if ........ # do for every direction
smth like that should do it
idk depends on what you're doing tbh
just make a raw iron go down the conveyor belt
well i mean he bassicaly showed u how to do it
thats like all u need..
u js gotta spawn the display first and
change block below
and
yea
do i set display to my thing?
do i need any addons for that
i have skbee and im getting errors
while {_display} is alive:
set display teleport duration to 1
if block below {_display} is black terracotta[facing=west]:
teleport {_display} to {_display}'s location ~ vector(1, 0, 0 )```
hm
set display teleport duration of {_display} to 1
and change the block to urs
wait the func doesnt make sense tbh
also it doesnt need to be a function
js make it on mine
it would be easier
well u first have to spawn the display eh?
yeah
le spawn block display at event-block
and
set {_display} to last spawned entity
set display block of {_display} to event-block
i mean when u make it its not gonna be hard to change it to a func if u rlly would need it
display block data
should be like blockdata of <block>
send whole event
le spawn block display at event-block
set {_display} to last spawned entity
set display block data of {_display} to iron_ore
while {_display} is alive:
set display teleport duration of {_display} to 1
if block below {_display} is black concrete:
teleport {_display} to {_display}'s location ~ vector(1, 0, 0 )``` i did that but then my serverd crashed cause of the while loop
hm
can i make it display item and not display block
bro do a check first so it doesn't js do it for every iron ore..
i mean it will prob be small then but sure try
so just change every block with item?
quite the opposite
you don't need to put le infront of spawn anymore
was an old workaround to skript not letting you spawn them when they were first added
you also don't have to repeatedly set its teleport duration
what then
and i need to kill it at the end
Represents the transformation scale of a Display Entity.
See Display Entity Data on McWiki for more details.
i mean maybe js make a check if the block below is the emerald one and end the loop and delete the variable
should work i tthinkknnnn
try it
(in the loop)
delete the local var?
it doesnt delete it
spawn item display at event-block
set {_display} to last spawned entity
set display item of {_display} to raw iron
while {_display} is alive:
set display teleport duration of {_display} to 0.3
if block below {_display} is black concrete:
teleport {_display} to {_display}'s location ~ vector(1, 0, 0 )
set display scale of {_display} to vector(1,1,1)
else if block below {_display} is emerald block:
delete {_display}```
hm
but what if its not the last spawned entity anymore
atleast it works
Will it work in different directions
why wouldnt it ๐ฆ
i can make it work i think
Like without changing the code I mean
no
Because you should keep that in mind
In case players can rearrange the conveyers etc. unless they're preplaced in which case it doesn't really matter
its not even finished yet brou
Calm it down buddy pal.
i also need to take care of killing it
but the delete is not doing anything right?
deleting the var? yeah
try to see if the check of emerald block even works
yeah it works
hm
kill <entity>
that doesnt work
it does in fact work
i tried kill item display and kill the item display
what?
it cant just recognize a random item display