#whitelist of block

1 messages · Page 1 of 1 (latest)

vestal minnow
#
  1. You need to put it in a structure, an event, for example
  2. You're setting a local list, that means it won't work outside that specific trigger, so even if you set it correctly, the list will be empty when you check it in your on mine:
hot abyss
#
    set {_whitelist::*} to honey_block and cobweb and rail and powered_rail and detector_rail and activator_rail and minecart and tnt and coal_ore and iron_ore and copper_ore and gold_ore and diamond_ore and emerald_ore and redstone_ore and nether_gold_ore and nether_quartz_ore and coal_block and iron_block and copper_block and gold_block and diamond_block and emerald_block and redstone_block
    if event-block is not in {_whitelist::*}:
        cancel event
        send "&cBạn không thể phá block này!" to player

this is my second ver and it said can't compare a block with in {_whitelist::*}

#

how to fix that @vestal minnow

vestal minnow
#

list does not contain event-block

hot abyss
#

😥 how to fix that, @vestal minnow

vestal minnow
#

??

#

I literally told you

hot abyss
#

I don't understand how

#
    set {_whitelist} to [honey_block, cobweb, rail, powered_rail, detector_rail, activator_rail, minecart, tnt, coal_ore, iron_ore, copper_ore, gold_ore, diamond_ore, emerald_ore, redstone_ore, nether_gold_ore, nether_quartz_ore, coal_block, iron_block, copper_block, gold_block, diamond_block, emerald_block, redstone_block]
    if event-block is not in {_whitelist}:
        cancel event
        send "&cBạn không thể phá block này!" to player```
#

sorry i does know the [] iss contain

#

this my third version it still doesnt work sirr

vestal minnow
hot abyss
#

sorry I'm stupid I don't understand what that sentence means

#

im using google to talk to you

#

Sorry to upset you I'll hope for someone else

#

thanks for reply Mug

vestal minnow
#

We have a #1037780461142933624 here

vestal minnow
hot abyss
#
    set {_whitelist::*} to honey_block, cobweb, rail, powered_rail, detector_rail, activator_rail, minecart, tnt, coal_ore, iron_ore, copper_ore, gold_ore, diamond_ore, emerald_ore, redstone_ore, nether_gold_ore, nether_quartz_ore, coal_block, iron_block, copper_block, gold_block, diamond_block, emerald_block, redstone_block
    if {_whitelist::*} contains event-block:
        cancel event
        send "&cBạn không thể phá block này!" to player```
it succes bro but i want to allow break block in whitelist not deny it how to change the line 7 to fix that, Mug
vestal minnow
hot abyss
#

it make i can break all block

slow holly
west jackal
#

Also you probably should just put the setting of whitelist to on load

slow holly
pale berry
#

or aliases

hot abyss
# west jackal Also you probably should just put the setting of whitelist to `on load`
on load:
    set {_whitelist::*} to honey_block, cobweb, rail, powered_rail, detector_rail, activator_rail, minecart, tnt, coal_ore, iron_ore, copper_ore, gold_ore, diamond_ore, emerald_ore, redstone_ore, nether_gold_ore, nether_quartz_ore, coal_block, iron_block, copper_block, gold_block, diamond_block, emerald_block, redstone_block

on mine:
    if {_whitelist::*} does not contain event-block:
        cancel event
        send "&cBạn không thể phá block này!" to player

it doesnt work correct

#

im still can break all block

#

how to fix that sir

pale berry
#

still local

thin scrollBOT
hot abyss
#
    set {_whitelist::*} to "honey_block, cobweb, rail, powered_rail, detector_rail, activator_rail, minecart, tnt, coal_ore, iron_ore, copper_ore, gold_ore, diamond_ore, emerald_ore, redstone_ore, nether_gold_ore, nether_quartz_ore, coal_block, iron_block, copper_block, gold_block, diamond_block, emerald_block, redstone_block"

on mine:
    if {_whitelist::*} does not contain event-block:
        cancel event
        send "&cBạn không thể phá block này!" to player

im just followed the your solve and it still stupid sir

#

i mean

#

i stupid

west jackal
#

No, you didn't lol

pale berry
#

that is still a local variable

#

you need to remove the _

hot abyss
#

at {} right sir

pale berry
#

oh wait, you've stringified it...

#

why?

#

i guess that works, but now it doesnt need a list, and you'll have to check for a substring too

hot abyss
#
    set {whitelist::*} to honey_block, cobweb, rail, powered_rail, detector_rail, activator_rail, minecart, tnt, coal_ore, iron_ore, copper_ore, gold_ore, diamond_ore, emerald_ore, redstone_ore, nether_gold_ore, nether_quartz_ore, coal_block, iron_block, copper_block, gold_block, diamond_block, emerald_block, redstone_block

on mine:
    if {whitelist::*} does not contain event-block:
        cancel event
        send "&cBạn không thể phá block này!" to player

it still do not work @pale berry

west jackal
#

Debug?

hot abyss
#

what you mean bell

pale berry
#

thats not gonna work with underscores in the block names

#

only if you stringify it and use the minecraft ID

#

otherwise, block names have spaces in them

#

you alo want to check contains type of event-block

hot abyss
#

@pale berry haiz

#

i just fix that by i change on mine to on break