You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

85 lines
2.6 KiB
YAML

# Permissions:
# - spawnerDrops.admin (allows placing of spawners as source ADMIN)
# Necessary permission:
# - minecraft.nbt.place (allows placing block with NBT-data)
break:
# Prerequisites for breaking a spawner from different sources
# If the prerequisite is not met, the event is canceled and the block stays where is is -> 'nothing' happens
break-prerequisite:
# 'unknown' means we dont know where the spawner came from (usually a generated one or e.g. using worldedit)
UNKNOWN:
# Which items are allowed to break a spawner (null to allow everything)
allowed-items:
- 'diamond_pickaxe'
# silktouch-enchantment is needed to be able to break this block
# if everything is set to false, any break is considered a 'success'
silktouch: true
# messages for success or failure
msg:
success: ''
fail: '§7§oNothing happens, it seems you need a diamond-pickaxe with silktouch'
PLAYER:
allowed-items:
- 'diamond_pickaxe'
silktouch: true
msg:
success: ''
fail: '§7§oNothing happens, it seems you need a diamond-pickaxe with silktouch'
ADMIN:
allowed-items:
- 'diamond_pickaxe'
silktouch: true
msg:
success: ''
fail: '§7§oNothing happens, it seems you need a diamond-pickaxe with silktouch'
drop:
item:
name: '{mob-type}-Spawner'
# Prerequisites for a successful drop of the spawner-item AFTER (and only if) it was broken
# (if a player can break it, but the drop prerequisite is not met, the block is broken, but not item will drop -> Its lost)
drop-prerequisite:
UNKNOWN:
allowed-items:
- 'diamond_pickaxe'
silktouch: true
msg:
success: '§7§oThe spawner breaks with a loud *Pop* and falls to the ground to be picked up'
fail: '§7§o*Poof* The spawner breaks into many pieces and is lost'
PLAYER:
allowed-items:
- 'diamond_pickaxe'
silktouch: true
msg:
success: ''
fail: '§7§o*Poof* The spawner breaks into many pieces and is lost'
ADMIN:
allowed-items:
- 'diamond_pickaxe'
silktouch: true
msg:
success: '§7§oThe spawner breaks with a loud *Pop* and falls to the ground to be picked up'
fail: '§7§o*Poof* The spawner breaks into many pieces and is lost'
place:
PLAYER:
canPlace: true
msg:
success: ''
fail: '§7§oNothing happened.. You dont seem to be able to place spawners'
ADMIN:
msg:
success: '§7§oMineable spawner placed'