#Display entities conveyor belt help
1 messages · Page 1 of 1 (latest)
skbee
i can install any other plugin, i am doing it on a localhost server at the moment
i was asking bcus i never saw spawn an item display 1 block north of event-block... i dont know how to help you.. sorry
that is vanilla skript
I am going to stop responding because I am asking for help and i dont want this chat to be cluttered
u want something like that:
on break of diamond ore:
# cancel event
set {_loc} to block 1 north event-location
skbee spawn item display at {_loc}
set display item of last spawned entity to diamond
set {_lastspawn} to last spawned entity
set {_bb} to block below {_lastspawn}
while {_bb}'s type is blackstone:
wait 0.5 second
kill {_lastspawn}
set {_loc} to block 1 north {_loc}
skbee spawn item display at {_loc}
set display item of last spawned entity to diamond
set {_lastspawn} to last spawned entity
set {_bb} to block below {_lastspawn}
wait 1 second
# ------ end on blackstone road ------ #
kill {_lastspawn}
this is only strait line.... but idk if that what u want
and i use skbee spawn item display at {_loc} bcus the line u send didnt work for me
i want it to work in any way that it is built
i can try and see if it works
you can also just push the item or just "teleport" instead of killing/respawning
that works really well just make it so it can turn
it will not be hard... u want my help with that?
plpease
please*
im not too good with display entities
ive spent a long time on it for it to not work
so could u help me with itrm display thing that isnt working for me?
on what line
not really any line in specific
well if it helps i kinda changed the skript given to me a bit to make it simpler
just check the block below the entity, then teleport it to location X [facing of block below it, which returns 'north', 'south', etc] of itself
on break of diamond ore:
cancel event
set {_loc} to block 1 north event-location
spawn item display at {_loc}
set display item of last spawned entity to diamond
set {_lastspawn} to last spawned entity
set {_bb} to block below {_lastspawn}
while {_bb}'s type is top blackstone stairs:
wait 0.2 seconds
kill {_lastspawn}
set {_loc} to block 1 north {_loc}
spawn item display at {_loc}
set display item of last spawned entity to diamond
set {_lastspawn} to last spawned entity
set {_bb} to block below {_lastspawn}
wait 0.3 second
kill {_lastspawn}
add 1 to {balance.%player's uuid%}
send actionbar "&a$+1" to player
it is killed instead of teleporting
im wondering if thats why the animation looks choppy
only time i ever kill and respawn something continuously is for falling blocks
im just going to change it to teleport real quick
it cut it down a few lines too
oh wait
wrong one
i hate windows' default text thing
on break of diamond ore:
cancel event
set {_loc} to block 1 north event-location
spawn item display at {_loc}
set display item of last spawned entity to diamond
set {_lastspawn} to last spawned entity
set {_bb} to block below {_lastspawn}
while {_bb}'s type is top blackstone stairs:
wait 0.2 seconds
set {_loc} to block 1 north {_loc}
teleport {_lastspawn} to {_loc}
set {_bb} to block below {_lastspawn}
wait 0.3 second
kill {_lastspawn}
add 1 to {balance.%player's uuid%}
send actionbar "&a$+1" to player
i still dont know where to go with the rotational thing
just change the last part to
facing of (a block location)
the parentheses are there to show what needs to be there
it's not actual code
facing of is the actual code
tried doing shit with facing and ig skript doesn't like recognizing directions
lol
im at a loss with this honestly
hm
theres another issue im working on fixing
any block that isnt blackstone stairs kills the entity and in my case adds money
i want it only to be the one
ok
just use this
location 1 above and 1 behind block at location 1 below player
1 above so you're not in the stair block
1 behind so you're "in front" of it
block at location 1 below player is the stair block they're currently standing on
it does tend to get goofy with stairs like this though, as far as I can tel
might need debug stick to fix it
nvm its just super weird orientation
if the stairs are facing North -> South, you can invert the yaw and be pointed the right way
if you're not, it doesn't 🤷
prob an issue with location default yaw idk
gonna see if i can come up w/ something to fix it
basically, like i said, when the item runs into any block that isnt blackstone stairs; it despawns the entity
tried fixing it with a check, did not work
on break of diamond ore:
cancel event
set {_loc} to block 1 north of event-location
spawn item display at {_loc}
set display item of last spawned entity to diamond
set {_lastspawn} to last spawned entity
set {_bb} to block below {_lastspawn}
while {_bb}'s type is top blackstone stairs:
wait 0.2 seconds
set {_loc} to block 1 north {_loc}
teleport {_lastspawn} to {_loc}
set {_bb} to block below {_lastspawn}
while {_bb}'s type is stone cutter:
wait 0.3 second
kill {_lastspawn}
add 1 to {balance.%player's uuid%}
send actionbar "&a$+1" to player
set line 5 of player's scoreboard to "&fBalance: &a$%{balance.%player's uuid%}%"
second while is what i added
and the money is infinitly going up lmao
because of that check
nvm im just a fool and forgot you add 180 to yaw instead of inverting it
it's always good btw to add emergency exits into while loops
exit loop if {_c} >= 50```
just in case it runs forever
how would that apply to mine
ive never worked with emergancy exits
plus what i did isnt even working lol
its not stopping
idek what its doing
you spawn a display entity
but only set the location once
{_bb} is a static location, it's not going to change
im trying to make a check to see if the block is not a top blackstone stair or whatever
and if its not that or a stone cutter it stops everything
yours: while {_bb}'s type is top blackstone stairs: [ {_bb} = block below {_lastspawn} ]
mine: while block at location 1 below player is top blackstone stairs:
mine is also using the player instead of a different entity for testing
swap out {_bb} to block below {_lastspawn}
u dont need the second while
well
just replace it wil if, see if that will work
can just be a basic if statement
yes ^
replce the work 'while' with the word 'if'
i dont have the second while anymore anyways
but just keep it in the same spot?
wait it worked
so back to this then
i dont know if im following
but, if u are using staiis for the road, its can get unpredictable, clould break
you set {_bb} to a single location, and it is never going to update
as a result, your while {_bb}'s type is top blackstone stairs: will only run once
i understand that
nvm you're re-setting {_bb} afterwards 🔥
its getting update in the while loop
which means less lag
Watch "Badlion Client 2024.01.16 - 16.41.09.03" on Streamable.
but the entity is getting killed over and over again, u cant do that
not anymore we changed it to teleport
needed like 5 lines of code
all it really takes
set {_bb} location 1 above and 1 behind block at location 1 below {_lastspawn}
did i do this right?
set {_bb} to location 1 above...
i am seeing some weird stuff going on though when trying to turn it to use display entities
just send to him the all code...
oops
i missed the to
on break of diamond ore:
cancel event
set {_loc} to block 1 north of event-location
spawn item display at {_loc}
set display item of last spawned entity to diamond
set {_lastspawn} to last spawned entity
set {_bb} to location 1 above and 1 behind block at location 1 below {_lastspawn}
while {_bb}'s type is top blackstone stairs:
wait 0.2 seconds
set {_loc} to block 1 north {_loc}
teleport {_lastspawn} to {_loc}
set {_bb} to block below {_lastspawn}
if {_bb}'s type is stone cutter:
wait 0.3 second
kill {_lastspawn}
add 1 to {bal.%player's uuid%}
send actionbar "&a$+1" to player
set line 5 of player's scoreboard to "&fBalance: &a$%{bal.%player's uuid%}%"
else:
send "&cBAD!" to event-player
its sending the "bad" which means its not registering as what it needs to
you're also still using "block 1 north"
and not one that adapts to the conveyor layout
so change it to one block north and one block behind?
set teleport location to 1 above and 1 behind the block below entity
teleport entity to teleport location
wait 1 tick
this is not real code, just guidelines for it
try this
on break of diamond ore:
cancel event
set {_loc} to location 1 above block at location 1 below event-location
skbee spawn item display at {_loc}
set display item of last spawned entity to diamond
set {_lastspawn} to last spawned entity
set {_bb} to block below {_lastspawn}
while {_bb}'s type is blackstone stairs:
wait 0.2 seconds
set {_loc} to location 1 above and 1 behind block at location 1 below {_lastspawn}
teleport {_lastspawn} to {_loc}
set {_bb} to block below {_lastspawn}
if {_bb}'s type is stone cutter:
wait 0.3 second
kill {_lastspawn}
add 1 to {bal.%player's uuid%}
# send actionbar "&a$+1" to player
set line 5 of player's scoreboard to "&fBalance: &a$%{bal.%player's uuid%}%"
else:
kill {_lastspawn}
send "&cBAD!" to event-player
still same thing
its working for me
hm one moment
tried that road, works fine
ah solved my own issue
it does work
the issue was my diamond ore was on a stone brick
it works so well
thank you
np
any tips for this, im trying to make the stair when placed face opposite from the player
set block 1 above event-block to top blackstone stair
maybe a variable
on right click:
player's tool contains evoker spawn egg:
cancel event
set block 1 above event-block to top blackstone stair
when its placed it placed upsidedown and the stair part needs to be facing the player
why u need to do that? it will probably be hard, will all the turners...
Well actually now that i think about it
I don’t even know why we needed conveyors to be buildable lol
Only one ore can be mined
Which means no need for longer conveyors
Basically you can upgrade the block you can mine maybe we can add smelters or something that increases money ultimately needing a longer conveyor
Hm
wdym longer conveyor? they can just make a long line, with stairs...
correct why would it be needed for just a singular ore
if u need more help, ask
I will thank you I’m just wondering what the need for building conveyors would be
if i was going to add more items to this skript is the easiest way to just add if event block is x and copy n paste
on break:
player's tool contains stick:
event-block is diamond ore:
cancel event
set {_loc} to location 1 above block at location 1 below event-location
spawn item display at {_loc}
set display item of last spawned entity to diamond
set {_lastspawn} to last spawned entity
set {_bb} to block below {_lastspawn}
while {_bb}'s type is blackstone stairs:
wait 0.2 seconds
set {_loc} to location 1 above and 1 behind block at location 1 below {_lastspawn}
teleport {_lastspawn} to {_loc}
set {_bb} to block below {_lastspawn}
if {_bb}'s type is stone cutter:
wait 0.3 second
kill {_lastspawn}
add 1 to {bal.%player's uuid%}
send actionbar "&a$+1" to player
set line 5 of player's scoreboard to "&fBalance: &a$%{bal.%player's uuid%}%"
else:
kill {_lastspawn}
send "&cBAD!" to event-player
line 3
and then paste the rest
or is there a condensed way
u could make a function
u can just copy and paste, that will be the easiest... no need to learn new things
im not sure how to do functions
ive never messed with functions
but also this
set block 1 above event-block to north facing top blackstone stair
its erroring and idk what its about
fixed
People here don't know EVERYTHING some people learn things simply while talking to each other, you will be surprised by the capacity of some player to go on docs ;P but yeah don't be rude or anything they are trying to help :D
i wasnt being rude
kinda ;(
i just didnt want the chat to be cluttered
either way what gives you the right to come in here and "moderate" another users conversation
💀
bro it's a public conversation
doesnt mean you should jump into the conversation and tell people how to talk
i was just telling you that people who help are doing it for free and can be respected
nothing about what i said wasnt respectful
💀
again, its your opinion