maple_planks: type: item display name: "<&7><&l>Maple Planks" material: acacia_planks convert_wood: type: world events: after player picks up acacia_log: - define original_block - inventory adjust slot:<[original_block]> "display_name:<&7><&l>Maple Log" after player picks up stripped_acacia_wood: - define original_block - inventory adjust slot:<[original_block]> "display_name:<&7><&l>Stripped Maple Wood" after player picks up stripped_acacia_log: - define original_block - inventory adjust slot:<[original_block]> "display_name:<&7><&l>Stripped Maple Log" after player picks up acacia_wood: - define original_block - inventory adjust slot:<[original_block]> "display_name:<&7><&l>Maple Wood" after player picks up acacia_planks: - define original_block - inventory adjust slot:<[original_block]> "display_name:<&7><&l>Maple Planks" on acacia_planks recipe formed: - determine on player crafts acacia_planks: - determine convert_saplings: type: world events: after player picks up acacia_sapling: - define original_sapling - inventory adjust slot:<[original_sapling]> "display_name:<&7><&l>Maple Sapling" tree_listener: type: world events: on structure grows: - if == plains: - modifyblock air - determine passively cancelled - choose : - case 1: - ~schematic load name:maplesmall1 - schematic paste name:maplesmall1 noair - case 2: - ~schematic load name:maplesmall2 - schematic paste name:maplesmall2 noair - case 3: - ~schematic load name:maplesmall3 - schematic paste name:maplesmall3 noair - case 4: - ~schematic load name:maplesmall4 - schematic paste name:maplesmall4 noair - case 5: - ~schematic load name:maplesmall5 - schematic paste name:maplesmall5 noair woodcutting_listener: type: world events: on player places acacia_log: - flag server woodcutting.player_made_trees. - announce flagged on player left clicks block with item: - if ]>: - determine cancelled - if !: - determine cancelled #choose axe type - choose : - case bronze_axe: - define axe - default: - determine cancelled #choose log - if !: - choose : - case acacia_log: - flag player woodcutting.tree. - flag player woodcutting.chop_count:0 - spawn hologram save:woodcutting_display - equip - adjust custom_name_visible:true - adjust custom_name:<&4>0% - flag player woodcutting.entity: #run the script - if : - narrate "<&c>You swing your axe and miss." - playsound entity_llama_spit pitch:-2 - determine cancelled - choose <[axe].script.name>: - case bronze_axe: - flag player woodcutting.cooldown duration:5s - flag player woodcutting.chop_count:++ - flag player woodcuttingxp:+:.30 - actionbar "<&a><&l>+ .30 XP" - playsound block_wood_break pitch:3 - choose : - case 1: - adjust custom_name:<&c><&l>20% - case 2: - adjust custom_name:<&6><&l>40% - case 3: - adjust custom_name:<&e><&l>60% - case 4: - adjust custom_name:<&2><&l>80% - case 5: - adjust custom_name:<&a><&l>100% - playsound block_anvil_use pitch:3 - flag player woodcutting.tree.:! - remove - flag player woodcutting.entity:! - flag player woodcutting.chop_count:!