on block break:
# Check if the player is in the Global WorldGuard region in the correct world
if player is in region "Global" in world "world": # Replace "world" with your world name if necessary
send "You are in the Global region!" to player
# Check if the block is one of the allowed blocks
if event-block is nether wart or
event-block is wheat or
event-block is oak log or
event-block is oak leaves or
event-block is sugar cane or
event-block is watermelon or
event-block is pumpkin or
event-block is potato or
event-block is cocoa beans or
event-block is mushroom or
event-block is mushroom (red) or
event-block is mushroom (brown) or
event-block is dandelion or
event-block is poppy or
event-block is blue orchid or
event-block is allium or
event-block is azure bluet or
event-block is tulip or
event-block is oxeye daisy:
# Allow breaking the block (do nothing here)
cancel event
send "You can break this block!" to player
else:
# Block is not in the allowed list, so cancel the event and notify the player
cancel event
send "You are not allowed to break this block in the Global region!" to player
else:
send "You are not in the Global region!" to player
(I tried creating a skript to only allow people in this region GLOBAL to break these blocks and nothing else as i have the region set to block-break deny build deny. I also need help with world guard as my custom plugin allows sapplings to grow back, even with the region is set to build -deny the trees do not grow. I need to override this without allowing players to build
# Check if the player is in the Global WorldGuard region in the correct world
if player is in region "Global" in world "world": # Replace "world" with your world name if necessary
send "You are in the Global region!" to player
# Check if the block is one of the allowed blocks
if event-block is nether wart or
event-block is wheat or
event-block is oak log or
event-block is oak leaves or
event-block is sugar cane or
event-block is watermelon or
event-block is pumpkin or
event-block is potato or
event-block is cocoa beans or
event-block is mushroom or
event-block is mushroom (red) or
event-block is mushroom (brown) or
event-block is dandelion or
event-block is poppy or
event-block is blue orchid or
event-block is allium or
event-block is azure bluet or
event-block is tulip or
event-block is oxeye daisy:
# Allow breaking the block (do nothing here)
cancel event
send "You can break this block!" to player
else:
# Block is not in the allowed list, so cancel the event and notify the player
cancel event
send "You are not allowed to break this block in the Global region!" to player
else:
send "You are not in the Global region!" to player
(I tried creating a skript to only allow people in this region GLOBAL to break these blocks and nothing else as i have the region set to block-break deny build deny. I also need help with world guard as my custom plugin allows sapplings to grow back, even with the region is set to build -deny the trees do not grow. I need to override this without allowing players to build
- Type
- Requesting
- Provided by
- Team
