#sit command

1 messages · Page 1 of 1 (latest)

amber shoal
#
  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?
modern apex
#

indentation error

#

line 4

#

only thing i can see right now

amber shoal
plain spruce
#

Just install Gsit plugin to your server....

#

Or code this with java

prisma wharf
#

(you can just.. check the block below it)

modern apex
midnight peak
#

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

amber shoal
prisma wharf
amber shoal
amber shoal
#

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

modern apex
#

try if block under {stand.%player%} is air: maybe

prisma wharf
#

read the 4ht line.

#

Just read it

amber shoal
#

?

amber shoal
prisma wharf
#

yes,

#

now reading it.

#

Tell me what it checks for?

amber shoal
#

if there is air under

#

the armor stand

#

OH

prisma wharf
#

Yep! it checks if theres air under the armor stand. If there is, it activates!

amber shoal
#

I SEE IT

prisma wharf
amber shoal
#

I dont

prisma wharf
#

?

amber shoal
#

I though I did

prisma wharf
#

wdym

#

legit just put "not air"

#

it currently only activates IF theres air

amber shoal
#

ohhh

prisma wharf
#

so it will still like

#

fall down

#

and move n stuff

amber shoal
#

yea

#

but idk how

prisma wharf
#

scroll up, i sent ya how

amber shoal
#

set artificial intelligence of {_armorstand} to off

#

?

#

ah k

#

Thanks