trigger:
if block below player is air:
if {sitting.%player%} is false:
spawn armor stand 1.7 below and 0.2 in front of player
set {stand.%player%} to last spawned entity
make {stand.%player%} invisible
make player ride {stand.%player%}
set {sitting.%player%} to true
send "&aYou are now sitting!" to player
on sneak toggle:
if {sitting.%player%} is true:
set {sitting.%player%} to false
send "&aYou are no longer sitting!" to player
kill {stand.%player%}
command /sitfalse <player>:
trigger:
set {sitting.%arg-1%} to false``` im trying to make the armor stand have no gravity and for it to cancel the command if there is air below the block your sitting on but I dont know how can someone help?
#sit command
1 messages · Page 1 of 1 (latest)
Ik but just ignore that
set artificial intelligence of {_armorstand} to off
Yes, i know the line is dumb, but you need to do this.
you COULD disable the gravity of the armor stand with skbee, but removing its ai with normal skript makes it completely unmoveable (which is better for this)
(you can just.. check the block below it)
like everyone can do that by theirselves
alos these should be list variables
and you should delete them instead of setting them to false
and you dont even need variables, just use on dismount
How would I do that?
if block at location 1 blocks under {_armorstand} is air:
ok thank you!
so umm
I just tried this
trigger:
if {sitting.%player%} is false:
if block at location 1 block under {stand.%player%} is air:
spawn armor stand 1.7 below and 0.2 in front of player
set {stand.%player%} to last spawned entity
make {stand.%player%} invisible
make player ride {stand.%player%}
set {sitting.%player%} to true
send "&aYou are now sitting!" to player
on sneak toggle:
if {sitting.%player%} is true:
set {sitting.%player%} to false
send "&aYou are no longer sitting!" to player
kill {stand.%player%}```
and it wont work
try if block under {stand.%player%} is air: maybe
...dude
read the 4ht line.
Just read it
yea thats your bit
Yep! it checks if theres air under the armor stand. If there is, it activates!
I SEE IT
Congrats
?
I though I did
ohhh
also you didnt remove its ai
so it will still like
fall down
and move n stuff
scroll up, i sent ya how
here
to be spesific :>