First working version of useEnchantment.
This commit is contained in:
parent
add3c34fad
commit
d9897910b9
70 changed files with 731 additions and 296 deletions
|
|
@ -1,33 +1,122 @@
|
|||
Policies:
|
||||
Location:
|
||||
- name: "spawn-protection"
|
||||
allowlist: false
|
||||
# NO SPACES
|
||||
- name: "Beta-1.7.3-items-only"
|
||||
# Will deny anything that's not allowed by the nodes if set to true
|
||||
allowList: true
|
||||
nodes:
|
||||
# example PolicyNode fields — adapt to your actual structure
|
||||
canHit: false
|
||||
canHarvest: false
|
||||
message: "You cannot use tools here."
|
||||
locations:
|
||||
# first group (ArrayList<BoundingBox>)
|
||||
-
|
||||
# region 1 in group 1
|
||||
- corner1: { x: 100, y: 60, z: 100 }
|
||||
corner2: { x: 110, y: 70, z: 110 }
|
||||
# region 2 in group 1
|
||||
- corner1: { x: 120, y: 58, z: 95 }
|
||||
corner2: { x: 125, y: 64, z: 100 }
|
||||
# second group (another ArrayList<BoundingBox>)
|
||||
-
|
||||
- corner1: { x: -50, y: 50, z: -50 }
|
||||
corner2: { x: -40, y: 60, z: -40 }
|
||||
|
||||
- name: "farm-area"
|
||||
allowlist: true
|
||||
nodes:
|
||||
canHit: true
|
||||
canHarvest: true
|
||||
message: "Farming allowed."
|
||||
- useItem:
|
||||
- AIR
|
||||
- STONE
|
||||
- COBBLESTONE
|
||||
- "^(OAK|SPRUCE|BIRCH)_(LOG|SAPLING|PLANKS|LEAVES)$"
|
||||
- "^(DIAMOND|GOLD|IRON|COAL|LAPIS|REDSTONE)_ORE$"
|
||||
- "^(DIAMOND|GOLD|IRON|LAPIS)_BLOCK$"
|
||||
- GRAVEL
|
||||
- BEDROCK
|
||||
- SAND
|
||||
- SPONGE
|
||||
- WET_SPONGE
|
||||
- GLASS
|
||||
- LAPIS_LAZULI
|
||||
- COBWEB
|
||||
- PISTON
|
||||
- STICKY_PISTON
|
||||
- GRASS
|
||||
- DISPENSER
|
||||
- NOTE_BLOCK
|
||||
- SANDSTONE
|
||||
- RED_BED
|
||||
- "^(POWERED|DETECTOR)_RAIL$"
|
||||
- RAIL
|
||||
- SHORT_GRASS
|
||||
- "^(WHITE|BLACK|GREEN|YELLOW|PINK|PURPLE|CYAN|BLUE|RED|LIME|BROWN|LIGHT_GRAY|GRAY)_(WOOL|DYE)$"
|
||||
- POPPY
|
||||
- DANDELION
|
||||
- "^(RED|BROWN)_MUSHROOM$"
|
||||
- "^(OAK|COBBLESTONE)_SLAB$"
|
||||
- BRICK_BLOCK
|
||||
- TNT
|
||||
- BOOKSHELF
|
||||
- OBSIDIAN
|
||||
- MOSSY_COBBLESTONE
|
||||
- TORCH
|
||||
- SPAWNER
|
||||
- REDSTONE
|
||||
- CHEST
|
||||
- CRAFTING_TABLE
|
||||
- FARMLAND
|
||||
- FURNACE
|
||||
- SIGN
|
||||
- LADDER
|
||||
- "^(COBBLESTONE|OAK)_STAIRS$"
|
||||
- LEVER
|
||||
- "^(OAK|STONE)_PRESSURE_PLATE$"
|
||||
- "^(OAK|IRON)_DOOR$"
|
||||
- BLUE_ICE
|
||||
- REDSTONE_TORCH
|
||||
- STONE_BUTTON
|
||||
- SNOW
|
||||
- SNOW_BLOCK
|
||||
- CLAY
|
||||
- SUGAR_CANE
|
||||
- JUKEBOX
|
||||
- OAK_FENCE
|
||||
- PUMPKIN
|
||||
- NETHERRACK
|
||||
- SOUL_SAND
|
||||
- GLOWSTONE
|
||||
- JACK_O_LANTERN
|
||||
- CAKE
|
||||
- REPEATER
|
||||
- OAK_TRAPDOOR
|
||||
- "^(IRON|STONE|DIAMOND|WOODEN|GOLDEN)_(SHOVEL|AXE|PICKAXE|SWORD|HOE)$"
|
||||
- "^(IRON|LEATHER|DIAMOND|GOLDEN)_(HELMET|CHESTPLATE|LEGGINGS|BOOTS)$"
|
||||
- STICK
|
||||
- BOWL
|
||||
- MUSHROOM_STEW
|
||||
- FEATHER
|
||||
- STRING
|
||||
- GUNPOWDER
|
||||
- WHEAT_SEEDS
|
||||
- WHEAT
|
||||
- FLINT
|
||||
- FLINT_AND_STEEL
|
||||
- PORKCHOP
|
||||
- "^(COOKED|RAW)_(PORKCHOP|FISH)$"
|
||||
- PAINTING
|
||||
- GOLDEN_APPLE
|
||||
- BUCKET
|
||||
- "^(LAVA|MILK|WATER)_BUCKET$"
|
||||
- MINECART
|
||||
- SADDLE
|
||||
- SNOWBALL
|
||||
- OAK_BOAT
|
||||
- LEATHER
|
||||
- "^(FURNACE|CHEST)_MINECART$"
|
||||
- EGG
|
||||
- BOOK
|
||||
- PAPER
|
||||
- BRICK
|
||||
- SLIME_BALL
|
||||
- COMPASS
|
||||
- FISHING_ROD
|
||||
- CLOCK
|
||||
- GLOWSTONE_DUST
|
||||
- INK_SAC
|
||||
- BONE_MEAL
|
||||
- SUGAR
|
||||
- COOKIE
|
||||
- MAP
|
||||
- FILLED_MAP
|
||||
- SHEARS
|
||||
- MUSIC_DISK_CAT
|
||||
- MUSIC_DISK_13
|
||||
- DIRT
|
||||
- BREAD
|
||||
- useEnchantment:
|
||||
"gibberish": 999999
|
||||
locations:
|
||||
-
|
||||
- corner1: { x: 200, y: 62, z: 200 }
|
||||
corner2: { x: 220, y: 66, z: 220 }
|
||||
- corner1: { x: 2100, y: 256, z: 1400 }
|
||||
corner2: { x: 1000, y: -64, z: 2200 }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue