//bridge-file-version: #63 { "format_version": "1.16.100", "minecraft:block": { "description": { "identifier": "mgg:wishing_well", "register_to_creative_menu": true, "properties": { "mgg:direction": [ 0, 1, 2, 3 ] } }, "components": { "minecraft:destroy_time": 1, "minecraft:map_color": "#007C9B", "minecraft:on_interact": { "event": "wish", "condition": "query.get_equipped_item_name('main_hand')== 'water_bucket' || query.get_equipped_item_name('main_hand')== 'bucket' || query.get_equipped_item_name('main_hand')== 'lava_bucket' || query.get_equipped_item_name('main_hand')== 'potion' || query.get_equipped_item_name('main_hand')== 'glass_bottle'", "target": "other" }, "minecraft:material_instances": { "*": { "texture": "wishing_well", "render_method": "alpha_test" } }, "minecraft:block_light_emission": 0.3, "minecraft:creative_category": { "category": "items", "group": "itemGroup.name.blaze" }, "minecraft:on_player_placing": { "event": "set_placing_rotation" }, "minecraft:geometry": "geometry.well", "minecraft:entity_collision": { "origin": [ -5, 0, -5 ], "size": [ 10, 6, 10 ] }, "minecraft:pick_collision": { "origin": [ -5, 0, -5 ], "size": [ 10, 6, 10 ] }, "minecraft:block_light_absorption": 0, "minecraft:breathability": "air" }, "permutations": [ { "condition": "query.block_property('mgg:direction') == 0", "components": { "minecraft:rotation": [ 0, 90, 0 ] } }, { "condition": "query.block_property('mgg:direction') == 1", "components": { "minecraft:rotation": [ 0, 270, 0 ] } }, { "condition": "query.block_property('mgg:direction') == 2", "components": { "minecraft:rotation": [ 0, 0, 0 ] } }, { "condition": "query.block_property('mgg:direction') == 3", "components": { "minecraft:rotation": [ 0, 180, 0 ] } } ], "events": { "set_placing_rotation": { "set_block_property": { "mgg:direction": "query.cardinal_facing_2d-2" } }, "wish": { "sequence": [ { "condition": "query.get_equipped_item_name == 'glass_bottle'", "run_command": { "command": [ "playsound cauldron.fillpotion @p" ], "target": "other" }, "decrement_stack": {}, "spawn_loot": { "table": "loot_tables/blocks/water_well_water_bottle.json" } }, { "condition": "query.get_equipped_item_name == 'bucket'", "run_command": { "command": [ "playsound bucket.fill_water @a[r=8]" ], "target": "other" }, "decrement_stack": {}, "spawn_loot": { "table": "loot_tables/blocks/water_well_water_bucket.json" } }, { "condition": "query.get_equipped_item_name == 'water_bucket'", "run_command": { "command": [ "playsound bucket.fill_water @a[r=8]" ], "target": "other" }, "transform_item": { "transform": "minecraft:bucket" } }, { "condition": "query.get_equipped_item_name == 'potion'", "run_command": { "command": [ "playsound bucket.fill_water @a[r=8]" ], "target": "other" }, "transform_item": { "transform": "minecraft:glass_bottle" } }, { "condition": "query.get_equipped_item_name == 'lava_bucket'", "transform_item": { "transform": "minecraft:bucket" }, "run_command": { "command": [ "playsound random.fizz @a[r=8] ~ ~ ~ 1 2.0" ], "target": "other" }, "spawn_loot": { "table": "loot_tables/blocks/wishing_well_lava.json" } } ] } } } }