#Gen protection,

1 messages · Page 1 of 1 (latest)

livid hearth
#

You made it a little backwards

modern cloud
#

huh?

livid hearth
#

Pretty sure it should be {var} contains location

#

If it does contain you give then a gen

#

If it doesnt

#

You cancel event

#

And you can send them a msg

modern cloud
#

i get error in my head

#

what?

#

if event-block is coarse dirt: if location of event-block contains {gens::%player's uuid%::dirt::*}: cancel event else: clear drops set event-block to air drop 1 coarse dirt above event-block

#

?

twilit scarab
#
if {gens::%player's uuid%::dirt::*} contains location of event-block

I think that this is what he means

modern cloud
twilit scarab
#

you just replace line 2 of ur code with this

#

and add a colon

modern cloud
#

doesnt work

#
        if {gens::%player's uuid%::dirt::*} contains location of event-block:
            cancel event
        else:
            clear drops
            set event-block to air
            drop 1 coarse dirt above event-block```
#

the first lines wont work or smth like if i do

#
        if {gens::%player's uuid%::dirt::*} contains location of event-block:
            cancel event
            send "huh"
        else:
            cancel event
            send "bruh"```
#

it saids bruh

#

so yeah

livid hearth
#

Then its not your gen

#

Ig

modern cloud
#

it is

#

how to do that people CANT break your gen

livid hearth
#

You cancel the event

#

To stop a break

#

But your issue rn is checking if its your gen or not

modern cloud
#

hmh

#

i just want that people cant break each other gens but can break the normal block

livid hearth
#

Thatll be more complicated

modern cloud
#

oh

livid hearth
#

I dont really feel like helping with that

#

Good luck :)

modern cloud