113 lines
		
	
	
		
			No EOL
		
	
	
		
			2.8 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
			
		
		
	
	
			113 lines
		
	
	
		
			No EOL
		
	
	
		
			2.8 KiB
		
	
	
	
		
			JSON
		
	
	
	
	
	
| {
 | |
|   "anvil_cost": 8,
 | |
|   "description": {
 | |
|     "translate": "enchantment.minecraft.channeling"
 | |
|   },
 | |
|   "effects": {
 | |
|     "minecraft:hit_block": [
 | |
|       {
 | |
|         "effect": {
 | |
|           "type": "minecraft:all_of",
 | |
|           "effects": [
 | |
|             {
 | |
|               "type": "minecraft:summon_entity",
 | |
|               "entity": "minecraft:lightning_bolt"
 | |
|             },
 | |
|             {
 | |
|               "type": "minecraft:play_sound",
 | |
|               "pitch": 1.0,
 | |
|               "sound": "minecraft:item.trident.thunder",
 | |
|               "volume": 5.0
 | |
|             }
 | |
|           ]
 | |
|         },
 | |
|         "requirements": {
 | |
|           "condition": "minecraft:all_of",
 | |
|           "terms": [
 | |
|             {
 | |
|               "condition": "minecraft:weather_check",
 | |
|               "thundering": true
 | |
|             },
 | |
|             {
 | |
|               "condition": "minecraft:entity_properties",
 | |
|               "entity": "this",
 | |
|               "predicate": {
 | |
|                 "type": "minecraft:trident"
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "condition": "minecraft:location_check",
 | |
|               "predicate": {
 | |
|                 "can_see_sky": true
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "block": "minecraft:lightning_rod",
 | |
|               "condition": "minecraft:block_state_property"
 | |
|             }
 | |
|           ]
 | |
|         }
 | |
|       }
 | |
|     ],
 | |
|     "minecraft:post_attack": [
 | |
|       {
 | |
|         "affected": "victim",
 | |
|         "effect": {
 | |
|           "type": "minecraft:all_of",
 | |
|           "effects": [
 | |
|             {
 | |
|               "type": "minecraft:summon_entity",
 | |
|               "entity": "minecraft:lightning_bolt"
 | |
|             },
 | |
|             {
 | |
|               "type": "minecraft:play_sound",
 | |
|               "pitch": 1.0,
 | |
|               "sound": "minecraft:item.trident.thunder",
 | |
|               "volume": 5.0
 | |
|             }
 | |
|           ]
 | |
|         },
 | |
|         "enchanted": "attacker",
 | |
|         "requirements": {
 | |
|           "condition": "minecraft:all_of",
 | |
|           "terms": [
 | |
|             {
 | |
|               "condition": "minecraft:weather_check",
 | |
|               "thundering": true
 | |
|             },
 | |
|             {
 | |
|               "condition": "minecraft:entity_properties",
 | |
|               "entity": "this",
 | |
|               "predicate": {
 | |
|                 "location": {
 | |
|                   "can_see_sky": true
 | |
|                 }
 | |
|               }
 | |
|             },
 | |
|             {
 | |
|               "condition": "minecraft:entity_properties",
 | |
|               "entity": "direct_attacker",
 | |
|               "predicate": {
 | |
|                 "type": "minecraft:trident"
 | |
|               }
 | |
|             }
 | |
|           ]
 | |
|         }
 | |
|       }
 | |
|     ]
 | |
|   },
 | |
|   "max_cost": {
 | |
|     "base": 50,
 | |
|     "per_level_above_first": 0
 | |
|   },
 | |
|   "max_level": 1,
 | |
|   "min_cost": {
 | |
|     "base": 25,
 | |
|     "per_level_above_first": 0
 | |
|   },
 | |
|   "slots": [
 | |
|     "mainhand"
 | |
|   ],
 | |
|   "supported_items": "#minecraft:enchantable/trident",
 | |
|   "weight": 1
 | |
| } |