Compare commits
31 Commits
documentation
...
alko
| Author | SHA1 | Date | |
|---|---|---|---|
| 664e4ccee4 | |||
| 228cc904f0 | |||
| f273633db5 | |||
| a9467f2df1 | |||
| 764ef33897 | |||
| a5dfb9d7bd | |||
| ec52f64f70 | |||
| 9c4796c5d1 | |||
| 1a20470e7b | |||
| 2d0ec7a621 | |||
| 60af7bc8ee | |||
| 041128eabb | |||
| 5d6cf54bb2 | |||
| f62ded2528 | |||
| 64ab76794f | |||
| 80a1e3db76 | |||
| ba7b085b04 | |||
| aad8eb5412 | |||
| caffbe1a34 | |||
| 64c3ac11dd | |||
| c680eb8750 | |||
| 75b6f6714d | |||
| 672c6530a2 | |||
| 96c9b1aca7 | |||
| 856c8c0be6 | |||
| bf8e1a45b3 | |||
| 0d709c39b2 | |||
| 91fa040dea | |||
| 8fdbea5097 | |||
| 9f5063a5a7 | |||
| 2188a1ccd5 |
@@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
MWRecipes.mcpack
|
||||||
|
resource_pack.mcaddon
|
||||||
|
MWAlko.mcaddon
|
||||||
|
MWAlkoB.mcpack
|
||||||
|
MWAlkoR.mcpack
|
||||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,3 @@
|
|||||||
|
give @s mw_alko:bottle_water
|
||||||
|
give @s mw_alko:alcohol
|
||||||
|
give @s mw_alko:bottle
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
clear @s mw_alko:bottle 0 1
|
||||||
|
give @s mw_alko:bottle_water 1 0
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
execute @p ~~~ detect ~~~ minecraft:water 0 function flaskTransform
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
give @s mw_alko:absent
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
give @s mw_alko:alcohol
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
give @s mw_alko:beer
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
give @s mw_alko:bottle
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
give @s mw_alko:bottle_water
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
give @s mw_alko:vine
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
give @s mw_alko:vodka
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
"values": []
|
||||||
|
}
|
||||||
@@ -0,0 +1,72 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.17.0",
|
||||||
|
"minecraft:item": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "mw_alko:absent",
|
||||||
|
"category": "Equipment"
|
||||||
|
},
|
||||||
|
"components": {
|
||||||
|
"minecraft:icon": {
|
||||||
|
"texture": "mw_alko",
|
||||||
|
"frame": 1
|
||||||
|
},
|
||||||
|
"minecraft:display_name": {
|
||||||
|
"value": "Абсент"
|
||||||
|
},
|
||||||
|
"minecraft:render_offsets": "potion",
|
||||||
|
"minecraft:use_animation": "drink",
|
||||||
|
"minecraft:hand_equipped": false,
|
||||||
|
"minecraft:max_stack_size": 1,
|
||||||
|
"minecraft:foil": false,
|
||||||
|
"minecraft:food": {
|
||||||
|
"saturation_modifier": "low",
|
||||||
|
"nutrition": 4,
|
||||||
|
"can_always_eat": true,
|
||||||
|
"effects": [
|
||||||
|
{
|
||||||
|
"name": "nausea",
|
||||||
|
"chance": 1,
|
||||||
|
"duration": 300,
|
||||||
|
"amplifier": 2
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "slowness",
|
||||||
|
"chance": 1,
|
||||||
|
"duration": 60,
|
||||||
|
"amplifier": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "strength",
|
||||||
|
"chance": 1,
|
||||||
|
"duration": 90,
|
||||||
|
"amplifier": 1
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "poison",
|
||||||
|
"chance": 1,
|
||||||
|
"duration": 4,
|
||||||
|
"amplifier": 0
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"on_consume": {
|
||||||
|
"event": "mw_alko:effect"
|
||||||
|
},
|
||||||
|
"remove_effects": [],
|
||||||
|
"using_converts_to": "mw_alko:bottle"
|
||||||
|
},
|
||||||
|
"minecraft:use_duration": 2
|
||||||
|
},
|
||||||
|
"events": {
|
||||||
|
"mw_alko:effect": {
|
||||||
|
"run_command": {
|
||||||
|
"command": [
|
||||||
|
"effect @s nausea 300 3 true",
|
||||||
|
"effect @s slowness 60 1 true",
|
||||||
|
"effect @s strength 90 1 true",
|
||||||
|
"effect @s poison 4 2 true"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.17.0",
|
||||||
|
"minecraft:item": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "mw_alko:alcohol",
|
||||||
|
"category": "Equipment"
|
||||||
|
},
|
||||||
|
"components": {
|
||||||
|
"minecraft:icon": {
|
||||||
|
"texture": "mw_alko",
|
||||||
|
"frame": 2
|
||||||
|
},
|
||||||
|
"minecraft:display_name": {
|
||||||
|
"value": "Самогон"
|
||||||
|
},
|
||||||
|
"minecraft:use_animation": "drink",
|
||||||
|
"minecraft:hand_equipped": false,
|
||||||
|
"minecraft:max_stack_size": 1,
|
||||||
|
"minecraft:foil": false,
|
||||||
|
"minecraft:food": {
|
||||||
|
"saturation_modifier": "low",
|
||||||
|
"nutrition": 4,
|
||||||
|
"can_always_eat": true,
|
||||||
|
"on_consume": {
|
||||||
|
"event": "mw_alko:effect"
|
||||||
|
},
|
||||||
|
"remove_effects": [],
|
||||||
|
"using_converts_to": "mw_alko:bottle"
|
||||||
|
},
|
||||||
|
"minecraft:use_duration": 3
|
||||||
|
},
|
||||||
|
"events": {
|
||||||
|
"mw_alko:effect": {
|
||||||
|
"run_command": {
|
||||||
|
"command": [
|
||||||
|
"effect @s nausea 120 0 true",
|
||||||
|
"effect @s poison 4 1 true",
|
||||||
|
"effect @s slowness 30 0 true"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,42 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.17.0",
|
||||||
|
"minecraft:item": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "mw_alko:beer",
|
||||||
|
"category": "Equipment"
|
||||||
|
},
|
||||||
|
"components": {
|
||||||
|
"minecraft:icon": {
|
||||||
|
"texture": "mw_alko",
|
||||||
|
"frame": 6
|
||||||
|
},
|
||||||
|
"minecraft:display_name": {
|
||||||
|
"value": "Пиво"
|
||||||
|
},
|
||||||
|
"minecraft:use_animation": "drink",
|
||||||
|
"minecraft:hand_equipped": false,
|
||||||
|
"minecraft:max_stack_size": 1,
|
||||||
|
"minecraft:foil": false,
|
||||||
|
"minecraft:food": {
|
||||||
|
"saturation_modifier": "normal",
|
||||||
|
"nutrition": 4,
|
||||||
|
"can_always_eat": true,
|
||||||
|
"on_consume": {
|
||||||
|
"event": "mw_alko:effect"
|
||||||
|
},
|
||||||
|
"using_converts_to": "mw_alko:bottle"
|
||||||
|
},
|
||||||
|
"minecraft:use_duration": 2
|
||||||
|
},
|
||||||
|
"events": {
|
||||||
|
"mw_alko:effect": {
|
||||||
|
"run_command": {
|
||||||
|
"command": [
|
||||||
|
"effect @s nausea 80 0 true",
|
||||||
|
"effect @s strength 20 0 true"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,21 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.17.0",
|
||||||
|
"minecraft:item": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "mw_alko:bottle",
|
||||||
|
"category": "Items"
|
||||||
|
},
|
||||||
|
"components": {
|
||||||
|
"minecraft:icon": {
|
||||||
|
"texture": "mw_alko",
|
||||||
|
"frame": 0
|
||||||
|
},
|
||||||
|
"minecraft:display_name": {
|
||||||
|
"value": "Бутылка"
|
||||||
|
},
|
||||||
|
"minecraft:hand_equipped": false,
|
||||||
|
"minecraft:max_stack_size": 64,
|
||||||
|
"minecraft:foil": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.17.0",
|
||||||
|
"minecraft:item": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "mw_alko:bottle_water",
|
||||||
|
"category": "Equipment"
|
||||||
|
},
|
||||||
|
"components": {
|
||||||
|
"minecraft:icon": {
|
||||||
|
"texture": "mw_alko",
|
||||||
|
"frame": 3
|
||||||
|
},
|
||||||
|
"minecraft:display_name": {
|
||||||
|
"value": "Бутылка с водой"
|
||||||
|
},
|
||||||
|
"minecraft:use_animation": "drink",
|
||||||
|
"minecraft:hand_equipped": false,
|
||||||
|
"minecraft:max_stack_size": 1,
|
||||||
|
"minecraft:foil": false,
|
||||||
|
"minecraft:food": {
|
||||||
|
"saturation_modifier": "normal",
|
||||||
|
"nutrition": 4,
|
||||||
|
"can_always_eat": true,
|
||||||
|
"effects": [],
|
||||||
|
"remove_effects": [],
|
||||||
|
"using_converts_to": "mw_alko:bottle"
|
||||||
|
},
|
||||||
|
"minecraft:use_duration": 3
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.17.0",
|
||||||
|
"minecraft:item": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "mw_alko:vine",
|
||||||
|
"category": "Equipment"
|
||||||
|
},
|
||||||
|
"components": {
|
||||||
|
"minecraft:icon": {
|
||||||
|
"texture": "mw_alko",
|
||||||
|
"frame": 4
|
||||||
|
},
|
||||||
|
"minecraft:display_name": {
|
||||||
|
"value": "Вино"
|
||||||
|
},
|
||||||
|
"minecraft:use_animation": "drink",
|
||||||
|
"minecraft:hand_equipped": false,
|
||||||
|
"minecraft:max_stack_size": 1,
|
||||||
|
"minecraft:foil": false,
|
||||||
|
"minecraft:food": {
|
||||||
|
"saturation_modifier": "normal",
|
||||||
|
"nutrition": 4,
|
||||||
|
"can_always_eat": true,
|
||||||
|
"on_consume": {
|
||||||
|
"event": "mw_alko:effect"
|
||||||
|
},
|
||||||
|
"remove_effects": [],
|
||||||
|
"using_converts_to": "mw_alko:bottle"
|
||||||
|
},
|
||||||
|
"minecraft:use_duration": 3
|
||||||
|
},
|
||||||
|
"events": {
|
||||||
|
"mw_alko:effect": {
|
||||||
|
"run_command": {
|
||||||
|
"command": [
|
||||||
|
"effect @s nausea 80 0 true",
|
||||||
|
"effect @s strength 20 0 true"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,44 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.17.0",
|
||||||
|
"minecraft:item": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "mw_alko:vodka",
|
||||||
|
"category": "Equipment"
|
||||||
|
},
|
||||||
|
"components": {
|
||||||
|
"minecraft:icon": {
|
||||||
|
"texture": "mw_alko",
|
||||||
|
"frame": 5
|
||||||
|
},
|
||||||
|
"minecraft:display_name": {
|
||||||
|
"value": "Водка"
|
||||||
|
},
|
||||||
|
"minecraft:use_animation": "drink",
|
||||||
|
"minecraft:hand_equipped": false,
|
||||||
|
"minecraft:max_stack_size": 1,
|
||||||
|
"minecraft:foil": false,
|
||||||
|
"minecraft:food": {
|
||||||
|
"saturation_modifier": "low",
|
||||||
|
"nutrition": 4,
|
||||||
|
"can_always_eat": true,
|
||||||
|
"on_consume": {
|
||||||
|
"event": "mw_alko:effect"
|
||||||
|
},
|
||||||
|
"remove_effects": [],
|
||||||
|
"using_converts_to": "mw_alko:bottle"
|
||||||
|
},
|
||||||
|
"minecraft:use_duration": 3
|
||||||
|
},
|
||||||
|
"events": {
|
||||||
|
"mw_alko:effect": {
|
||||||
|
"run_command": {
|
||||||
|
"command": [
|
||||||
|
"effect @s nausea 100 0 true",
|
||||||
|
"effect @s strength 30 0 true",
|
||||||
|
"effect @s slowness 20 0 true"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
{"format_version": 2, "header": {"description": "Сборник изменений для MW", "name": "MW Different", "uuid": "e9eba44a-91d6-41de-a242-76c8c7d0e83b", "version": [0, 2, 0], "min_engine_version": [1, 17, 0]}, "modules": [{"description": "Сборник изменений для MW", "type": "data", "uuid": "115c640d-fbfd-48af-8e50-115c5bb6485e", "version": [0, 2, 0]}], "dependencies": [{"uuid": "8b764b0b-89b1-45df-8f83-9204bccf7184", "version": [0, 2, 0]}]}
|
||||||
Binary file not shown.
|
After Width: | Height: | Size: 914 B |
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.12",
|
||||||
|
"minecraft:recipe_brewing_mix": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "mw_alko:absent"
|
||||||
|
},
|
||||||
|
|
||||||
|
"tags": [ "brewing_stand" ],
|
||||||
|
|
||||||
|
"input": "mw_alko:alcohol",
|
||||||
|
"reagent": "minecraft:poisonous_potato",
|
||||||
|
"output": "mw_alko:absent"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -2,14 +2,13 @@
|
|||||||
"format_version": "1.12",
|
"format_version": "1.12",
|
||||||
"minecraft:recipe_brewing_mix": {
|
"minecraft:recipe_brewing_mix": {
|
||||||
"description": {
|
"description": {
|
||||||
"identifier": "minecraft:brew_water_sugar"
|
"identifier": "mw_alko:alcohol"
|
||||||
},
|
},
|
||||||
|
|
||||||
"tags": [ "brewing_stand" ],
|
"tags": [ "brewing_stand" ],
|
||||||
|
|
||||||
"input": "minecraft:potion_type:water",
|
"input": "mw_alko:bottle_water",
|
||||||
"reagent": "minecraft:sugar",
|
"reagent": "minecraft:sugar",
|
||||||
"output": "minecraft:potion_type:mundane"
|
"output": "mw_alko:alcohol"
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.12",
|
||||||
|
"minecraft:recipe_brewing_mix": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "mw_alko:beer"
|
||||||
|
},
|
||||||
|
|
||||||
|
"tags": [ "brewing_stand" ],
|
||||||
|
|
||||||
|
"input": "mw_alko:bottle_water",
|
||||||
|
"reagent": "minecraft:wheat",
|
||||||
|
"output": "mw_alko:beer"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.12",
|
||||||
|
"minecraft:recipe_shaped": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "mw_alko:bottle"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"crafting_table"
|
||||||
|
],
|
||||||
|
"pattern": [
|
||||||
|
"A A",
|
||||||
|
"A A",
|
||||||
|
"AAA"
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"A": {
|
||||||
|
"item": "minecraft:glass",
|
||||||
|
"data": 0
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"item": "mw_alko:bottle",
|
||||||
|
"count": 4
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.12",
|
||||||
|
"minecraft:recipe_shaped": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "mw_alko:bottle_water"
|
||||||
|
},
|
||||||
|
"tags": [
|
||||||
|
"crafting_table"
|
||||||
|
],
|
||||||
|
"pattern": [
|
||||||
|
" ",
|
||||||
|
" B ",
|
||||||
|
" "
|
||||||
|
],
|
||||||
|
"key": {
|
||||||
|
"A": {
|
||||||
|
"item": "minecraft:bucket"
|
||||||
|
},
|
||||||
|
"B": {
|
||||||
|
"item": "mw_alko:bottle"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"item": "mw_alko:bottle_water"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.12",
|
||||||
|
"minecraft:recipe_brewing_mix": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "mw_alko:vine"
|
||||||
|
},
|
||||||
|
|
||||||
|
"tags": [ "brewing_stand" ],
|
||||||
|
|
||||||
|
"input": "mw_alko:bottle_water",
|
||||||
|
"reagent": "minecraft:sweet_berries",
|
||||||
|
"output": "mw_alko:vine"
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,14 @@
|
|||||||
|
{
|
||||||
|
"format_version": "1.12",
|
||||||
|
"minecraft:recipe_brewing_mix": {
|
||||||
|
"description": {
|
||||||
|
"identifier": "mw_alko:vodka"
|
||||||
|
},
|
||||||
|
|
||||||
|
"tags": [ "brewing_stand" ],
|
||||||
|
|
||||||
|
"input": "mw_alko:alcohol",
|
||||||
|
"reagent": "minecraft:coal",
|
||||||
|
"output": "mw_alko:vodka"
|
||||||
|
}
|
||||||
|
}
|
||||||
+50
@@ -0,0 +1,50 @@
|
|||||||
|
import json
|
||||||
|
import shutil
|
||||||
|
import os
|
||||||
|
|
||||||
|
databr = json.load(open("behavior_pack\manifest.json", "r", encoding='utf-8'))
|
||||||
|
datarr = json.load(open("resource_pack\manifest.json", "r", encoding='utf-8'))
|
||||||
|
|
||||||
|
changenum = input("Какую цифру версии повысить[1.2.3]> ")
|
||||||
|
|
||||||
|
info_ver = databr["header"]["version"]
|
||||||
|
|
||||||
|
if changenum == "3":
|
||||||
|
num = info_ver[2] + 1
|
||||||
|
info_ver[2] = num
|
||||||
|
elif changenum == "2":
|
||||||
|
num = info_ver[1] + 1
|
||||||
|
info_ver[1] = num
|
||||||
|
info_ver[2] = 0
|
||||||
|
elif changenum == "1":
|
||||||
|
num = info_ver[0] + 1
|
||||||
|
info_ver[0] = num
|
||||||
|
info_ver[1] = 0
|
||||||
|
info_ver[2] = 0
|
||||||
|
else:
|
||||||
|
print("Нет изменений в версии")
|
||||||
|
|
||||||
|
databr["header"]["version"] = info_ver
|
||||||
|
databr["modules"][0]["version"] = info_ver
|
||||||
|
databr["dependencies"][0]["version"] = info_ver
|
||||||
|
|
||||||
|
datarr["header"]["version"] = info_ver
|
||||||
|
datarr["modules"][0]["version"] = info_ver
|
||||||
|
datarr["dependencies"][0]["version"] = info_ver
|
||||||
|
|
||||||
|
json.dump(databr, open("behavior_pack\manifest.json", "w", encoding='utf-8'), ensure_ascii=False)
|
||||||
|
json.dump(datarr, open("resource_pack\manifest.json", "w", encoding='utf-8'), ensure_ascii=False)
|
||||||
|
|
||||||
|
zip_name_behavior = 'MWAlkoB'
|
||||||
|
directory_name_behavior = 'behavior_pack'
|
||||||
|
shutil.make_archive(zip_name_behavior, 'zip', directory_name_behavior)
|
||||||
|
shutil.move("MWAlkoB.zip", "MWAlkoB.mcpack")
|
||||||
|
zip_name_resource = 'MWAlkoR'
|
||||||
|
directory_name_resource = 'resource_pack'
|
||||||
|
shutil.make_archive(zip_name_resource, 'zip', directory_name_resource)
|
||||||
|
shutil.move("MWAlkoR.zip", "MWAlkoR.mcpack")
|
||||||
|
|
||||||
|
opeo_file_q = input("""Открыть файлы в Minecraft["+" для открытия]? >""")
|
||||||
|
if opeo_file_q == "+":
|
||||||
|
os.startfile("MWAlkoB.mcpack")
|
||||||
|
os.startfile("MWAlkoR.mcpack")
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,676 +0,0 @@
|
|||||||
<h1>ANIMATIONS DOCUMENTATION </br>Version: 1.18.1.2</h1>
|
|
||||||
<h2><p id="Index">Index</p></h2>
|
|
||||||
<table border="1">
|
|
||||||
<tr> <th><a href="#Animation Controllers">Animation Controllers</a></th> </tr>
|
|
||||||
<tr> <td> <a href="#"> </a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#State Blending"> State Blending</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#State Transitions"> State Transitions</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#States"> States</a> </tr> </td>
|
|
||||||
<tr> <th><a href="#Channels (Rotation, Position, Scale)">Channels (Rotation, Position, Scale)</a></th> </tr>
|
|
||||||
<tr> <th><a href="#Entity Animation Format Examples">Entity Animation Format Examples</a></th> </tr>
|
|
||||||
<tr> <th><a href="#Getting Started">Getting Started</a></th> </tr>
|
|
||||||
<tr> <td> <a href="#Adding Animations"> Adding Animations</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Animation Hierarchy"> Animation Hierarchy</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Upgrade from v1.10 to v1.17.30"> Upgrade from v1.10 to v1.17.30</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Upgrade from v1.7 Beta to v1.8"> Upgrade from v1.7 Beta to v1.8</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Upgrade from v1.8 Beta to v1.10"> Upgrade from v1.8 Beta to v1.10</a> </tr> </td>
|
|
||||||
<tr> <th><a href="#Key Frames">Key Frames</a></th> </tr>
|
|
||||||
<tr> <td> <a href="#Interpolation"> Interpolation</a> </tr> </td>
|
|
||||||
<tr> <th><a href="#Names">Names</a></th> </tr>
|
|
||||||
<tr> <th><a href="#Overview">Overview</a></th> </tr>
|
|
||||||
<tr> <th><a href="#Render Controllers">Render Controllers</a></th> </tr>
|
|
||||||
<tr> <td> <a href="#Examples"> Examples</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Getting Started"> Getting Started</a> </tr> </td>
|
|
||||||
<tr> <th><a href="#Transforms">Transforms</a></th> </tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a>
|
|
||||||
<h1><p id="Animation Controllers">Animation Controllers</p></h1>
|
|
||||||
|
|
||||||
Animation controllers decide which animations to play when. Each controller contains a list of states that play one or more animations, each of which can be blended by a Molang expression if so desired. Controller files are stored as JSON in the animation_controllers folder</br><h2></h2>
|
|
||||||
Animation Controller Format:<br / ><textarea readonly="true" cols="59" rows="24">
|
|
||||||
{
|
|
||||||
"format_version": "1.17.30",
|
|
||||||
"animation_controllers": {
|
|
||||||
"controller.animation.sheep.move": {
|
|
||||||
"states": {
|
|
||||||
"default": {
|
|
||||||
"animations": [
|
|
||||||
{ "walk": "query.modified_move_speed" }
|
|
||||||
],
|
|
||||||
"transitions": [
|
|
||||||
{ "grazing": "query.is_grazing" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"grazing": {
|
|
||||||
"animations": [ "grazing" ],
|
|
||||||
"transitions": [
|
|
||||||
{ "default": "query.all_animations_finished" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="State Blending">State Blending</p></h1>
|
|
||||||
|
|
||||||
If you would like there to be a cross-fade between states when transitioning, simply set "blend_transition" to the time you would like the system to take in blending between the two states. This is done as a simple lerp between the two states over the time specified.</br><h2></h2>
|
|
||||||
For example: <br / ><textarea readonly="true" cols="156" rows="18">
|
|
||||||
"controller.animation.tiger.move": {
|
|
||||||
"states": {
|
|
||||||
"default": {
|
|
||||||
"animations": [ "base_pose", "walk" ],
|
|
||||||
"transitions": [
|
|
||||||
{ "angry": "query.is_angry" } // transition to angry state if query.is_angry returns true
|
|
||||||
],
|
|
||||||
"blend_transition": 0.2 // when transitioning away from this state, cross-fade over 0.2 seconds
|
|
||||||
},
|
|
||||||
"angry": {
|
|
||||||
"animations": [ "roar", "extend_claws" ],
|
|
||||||
"transitions": [
|
|
||||||
{ "default": "query.any_animation_finished" } // transition back to default state when either the roar animation or extend_claws animation finishes
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="State Transitions">State Transitions</p></h1>
|
|
||||||
|
|
||||||
A state can specify any number of transition scripts, listed in order. Each transition has a target state to switch to, and a script for whether it should switch or not. For each transition in order, evaluate the script, and if it returns non-zero, switch to the specified state immediately. NOTE: Only one transition will be processed per frame.</br><h2></h2>
|
|
||||||
<br / ><textarea readonly="true" cols="71" rows="17">
|
|
||||||
"<controller_name>": {
|
|
||||||
"states": {
|
|
||||||
"<state_name>": {
|
|
||||||
...
|
|
||||||
"transitions": [
|
|
||||||
// Evaluate the below expressions in order.
|
|
||||||
// The first to return non-zero is the state to transition to.
|
|
||||||
// If all are zero, then don't transition.
|
|
||||||
{ "<target_state_name_A>", "<expression>" },
|
|
||||||
{ "<target_state_name_B>", "<expression>" },
|
|
||||||
...
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
...
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
For example: <br / ><textarea readonly="true" cols="156" rows="24">
|
|
||||||
"controller.animation.tiger.move": {
|
|
||||||
"states": {
|
|
||||||
"default": {
|
|
||||||
"animations": [ "base_pose", "walk" ],
|
|
||||||
"transitions": [
|
|
||||||
{ "angry": "query.is_angry" }, // transition to angry state if query.is_angry returns true
|
|
||||||
{ "tired": "variable.is_tired" } // transition to tired state if variable.is_tired returns true
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"angry": {
|
|
||||||
"animations": [ "roar", "extend_claws" ],
|
|
||||||
"transitions": [
|
|
||||||
{ "default": "query.any_animation_finished" } // transition back to default state when either the roar animation or extend_claws animation finishes
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"tired": {
|
|
||||||
"animations": [ "yawn", "stretch" ],
|
|
||||||
"transitions": [
|
|
||||||
{ "default": "query.all_animation_finished" } // transition back to default state when the yawn and stretch animations have both finished
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="States">States</p></h1>
|
|
||||||
|
|
||||||
A state defines a group of animations to process (each of which can have it's own blend value). Each state has an optional variables section, listing any number of variables that referenced animations can use. Each state also has one or more animations, using the name given in the entity's definition json.</br><h2></h2>
|
|
||||||
|
|
||||||
<h2><p id="State Variables">State Variables</p></h2>
|
|
||||||
|
|
||||||
Variables are either set by the game or by a user defined script that can be found in the entity definition json found in definitions/entity/<entity_name>.json. Variables have their value set by a Molang Expression. They can also have their value remapped via a linearly-interpolated curve.</br><h3></h3>
|
|
||||||
|
|
||||||
<h3><p id="For Example:">For Example:</p></h3>
|
|
||||||
|
|
||||||
This defines a controller with a single state. It will create a variable `variable.ground_speed_curve` that lives on the entity only while processing the animation controller for that frame. It will take the value of `query.ground_speed`, then remap it to between 0.2 and 0.7 based on the value of `query.ground_speed` going from 0.0 to 1.0It will play one animation walk that will blend from 0.0 to 1.0 as the ground speed increases from stopped to 2.3 m/s. The remap curve can have any number of entries. The animation controller will then play the entity-referenced `wiggle_nose` animations, followed by the `walk` animation, scaling the latter by the value of `variable.ground_speed_curve`</br><h4></h4>
|
|
||||||
<br / ><textarea readonly="true" cols="54" rows="27">
|
|
||||||
```
|
|
||||||
{
|
|
||||||
"format_version": "1.17.30",
|
|
||||||
"animation_controllers": {
|
|
||||||
"controller.animation.sheep.move": {
|
|
||||||
"states": {
|
|
||||||
"default": {
|
|
||||||
"variables": {
|
|
||||||
"ground_speed_curve": {
|
|
||||||
"input": "query.ground_speed",
|
|
||||||
"remap_curve": {
|
|
||||||
"0.0": 0.2,
|
|
||||||
"1.0": 0.7
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"animations": [
|
|
||||||
"wiggle_nose",
|
|
||||||
{ "walk": "variable.ground_speed_curve" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
```
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h2><p id="User-Defined Script Example">User-Defined Script Example</p></h2>
|
|
||||||
|
|
||||||
This script will set foo to the result of the sine of query.life_time to later be used in the animation or animation controller.</br></br>Note: "pre_animation" tells the script to figure out the values of those variables once a frame, before animation occurs, so that the animation can use those values in their own formulas. If a variable didn't exist, it will create a new variable and its default value will be 0.0</br><h3></h3>
|
|
||||||
|
|
||||||
Note in this example that because foo is equal to a sin wave, that its values will range from -1 to 1. This means that you will have a period from 0 to -1 to 0 where only "base_pose" will play and then an equal amount of time where Walk will play on top of base_pose as foo goes from 0 to 1 back to 0. Base_pose will have a blend value of 1.0.</br><h4></h4>
|
|
||||||
<br / ><textarea readonly="true" cols="78" rows="14">
|
|
||||||
"controller.animation.tiger.move": {
|
|
||||||
"states": {
|
|
||||||
"default": {
|
|
||||||
"animations": [
|
|
||||||
//animations are ADDITIVE unless otherwise specified
|
|
||||||
//in this case, base_pose will always be playing in the default state
|
|
||||||
//walk will play as well if Entity.foo is greater than 0.0
|
|
||||||
"base_pose",
|
|
||||||
{ "walk": "variable.foo > 0.0" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="In definitions\entity\tiger.json:">In definitions\entity\tiger.json:</p></h3>
|
|
||||||
|
|
||||||
<h4></h4>
|
|
||||||
<br / ><textarea readonly="true" cols="51" rows="10">
|
|
||||||
{
|
|
||||||
"custom:tiger":{
|
|
||||||
"scripts":{
|
|
||||||
"pre_animation": {
|
|
||||||
"variable.foo = math.sin(query.life_time)"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h1><p id="Channels (Rotation, Position, Scale)">Channels (Rotation, Position, Scale)</p></h1>
|
|
||||||
|
|
||||||
The engine tracks the animation of rotation, position, and scale separately. Within a channel, one or more key frames are specified at arbitrary times, in seconds, from the start of the animation. If no key frames are specified, a single key frame is created at t=0.0 and all channel data is stored within that key frame.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Entity Animation Format Examples">Entity Animation Format Examples</p></h1>
|
|
||||||
|
|
||||||
The json format for an animation is as follows. Note Matching the geometry format, units are in 1/16ths of meters.</br><h2></h2>
|
|
||||||
<br / ><textarea readonly="true" cols="192" rows="32">
|
|
||||||
|
|
||||||
```
|
|
||||||
<animation_name>": {
|
|
||||||
// optional
|
|
||||||
"loop": <bool> // default = false. Should the animation loop back to t=0.0 when it finishes?
|
|
||||||
"blend_weight": <expression> // default = "1.0". How much this animation is blended with the others. 0.0 = off. 1.0 = fully apply all transforms. Can be an expression - see the Animation Controller section below
|
|
||||||
"animation_length": <float> // default = time of last key frame. At what time does the system consider this animation finished?
|
|
||||||
"override_previous_animation": <bool> // default = false. Should the animation pose of the bone be set to the bind pose before applying this animation, thereby overriding any previous animations to this point?
|
|
||||||
|
|
||||||
// required
|
|
||||||
"bones": [
|
|
||||||
{
|
|
||||||
"<bone_name>": { // must match the name of the bone specified in the geometry skeleton
|
|
||||||
// various flavours of setting data
|
|
||||||
// omitting a channel skips that channel for this animation of this bone
|
|
||||||
// any number of floats below can be replaced by a string expression as described above; you don't have to replace all the floats on a line with expressions, only the ones you want to be expression-based
|
|
||||||
"position": 1.0, // set x, y, and z to 1
|
|
||||||
"position": [1.0], // set x, y, and z to 1
|
|
||||||
"position": [1.0, 2.0, 3.0], // set x=1 , y=2 , and z=3
|
|
||||||
"rotation": 45.0, // set x, y, and z to 45 degrees
|
|
||||||
"rotation": [45.0], // set x, y, and z to 45 degrees
|
|
||||||
"rotation": [30.0, 0.0, 45.0], // set x, y, and z to the respective values (in degrees)
|
|
||||||
// note: only uniform scaling is supported at this time
|
|
||||||
"scale": 2.0, // scales the bone by 2.0
|
|
||||||
"scale": [2.0], // scales the bone by 2.0
|
|
||||||
// Key frame data is described below
|
|
||||||
// Note that any of the above styles of values will work for "pre" and "post", and "pre" does not have to have the same format as "post"
|
|
||||||
"rotation": {
|
|
||||||
"0.0": [80.0, 0.0, 0.0],
|
|
||||||
"0.1667": [-80.0, 0.0, 0.0],
|
|
||||||
"0.333": [80.0, 0.0, 0.0]
|
|
||||||
}
|
|
||||||
// For discontinuous channel curve, you can specify a different value when interpolating to/from this key frame
|
|
||||||
"rotation": {
|
|
||||||
"0.3": { // the key field is the time stamp for this key frame: the value can be any of the above examples
|
|
||||||
"pre": [30.0, 0.0, 45.0], // when interpolating towards this key frame from the previous, use this value
|
|
||||||
"post": "180.0 * Math.Sin(global.key_frame_lerp_time)" // when at interpolating away from this key frame to the next, use this value
|
|
||||||
}
|
|
||||||
}
|
|
||||||
// another example
|
|
||||||
"rotation": {
|
|
||||||
"0.0": [80.0, 0.0, 0.0], // start at an x rotation of 80 degrees
|
|
||||||
"0.4": {
|
|
||||||
"pre": [80.0, 0.0, 0.0], // stay at 80 until 0.4 seconds have elapsed
|
|
||||||
"post": [0.0, 0.0, 0.0], // discontinuously pop the x rotation to 0.0 degrees
|
|
||||||
},
|
|
||||||
"0.8": [-80.0, 0.0, 0.0] // using the previous frame's lerp mode, lerp to a x rotation of -80 degrees by 0.8 seconds
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
```
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Getting Started">Getting Started</p></h1>
|
|
||||||
|
|
||||||
<h1><p id="Adding Animations">Adding Animations</p></h1>
|
|
||||||
|
|
||||||
<h2></h2>
|
|
||||||
|
|
||||||
<h2><p id="Animation Controller">Animation Controller</p></h2>
|
|
||||||
|
|
||||||
One needs to be able to control how animations are played, when, and how they interact with other animations. to group animations While a lot of this can be managed in the entity definition `scripts/animate` section, animation controllers give you the functionality of a state machine into states and control them as a block. Animations in an animation controller state can be animation controllers themselves, allowing for arbitrarily complex animation hierarchies.</br><h3></h3>
|
|
||||||
Here's a sample animation controller<br / ><textarea readonly="true" cols="58" rows="27">
|
|
||||||
{
|
|
||||||
"format_version": "1.17.30",
|
|
||||||
"animation_controllers": {
|
|
||||||
"controller.animation.my_mob.move": {
|
|
||||||
"initial_state": "moving",
|
|
||||||
"states": {
|
|
||||||
"moving": {
|
|
||||||
"animations": [
|
|
||||||
"wag_tail",
|
|
||||||
"wiggle_ears",
|
|
||||||
{ "walk": "query.modified_move_speed" }
|
|
||||||
],
|
|
||||||
"transitions": [
|
|
||||||
{ "grazing": "query.is_grazing" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"grazing": {
|
|
||||||
"animations": [ "grazing" ],
|
|
||||||
"transitions": [
|
|
||||||
{ "moving": "query.all_animations_finished" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h2><p id="Animations">Animations</p></h2>
|
|
||||||
|
|
||||||
At the beginning of each frame, the skeleton is reset to its default pose from its geometry definition and then animations are applied per-channel-additively in order. Note that the channels (x, y, and z) are added separately across animations first, then converted to a transform once all animations have been cumulatively applied.</br><h3></h3>
|
|
||||||
|
|
||||||
<h3><p id="Animation data can be either raw data:">Animation data can be either raw data:</p></h3>
|
|
||||||
|
|
||||||
<h4></h4>
|
|
||||||
By default, rotations are in degrees, in euler X-then-Y-then-Z format<br / ><textarea readonly="true" cols="29" rows="2">
|
|
||||||
"rotation": [90.0, 0.0, 0.0]
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="or a run-time interpreted script:">or a run-time interpreted script:</p></h3>
|
|
||||||
|
|
||||||
<h4></h4>
|
|
||||||
<br / ><textarea readonly="true" cols="80" rows="2">
|
|
||||||
"rotation": ["cos(query.anim_pos * 38.17) * 80.0 * query.anim_speed", 0.0, 0.0]
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3></h3>
|
|
||||||
Here is an example from quadruped.animation.json in the vanilla resource pack's animation folder:<br / ><textarea readonly="true" cols="91" rows="16">
|
|
||||||
{
|
|
||||||
"format_version": "1.8.0",
|
|
||||||
"animations": {
|
|
||||||
"animation.quadruped.walk": {
|
|
||||||
"anim_time_update": "query.modified_distance_moved",
|
|
||||||
"loop": true,
|
|
||||||
"bones": {
|
|
||||||
"leg0": { "rotation": [ "Math.cos(query.anim_time * 38.17) * 80.0", 0.0, 0.0 ] },
|
|
||||||
"leg1": { "rotation": [ "Math.cos(query.anim_time * 38.17) * -80.0", 0.0, 0.0 ] },
|
|
||||||
"leg2": { "rotation": [ "Math.cos(query.anim_time * 38.17) * -80.0", 0.0, 0.0 ] },
|
|
||||||
"leg3": { "rotation": [ "Math.cos(query.anim_time * 38.17) * 80.0", 0.0, 0.0 ] }
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h2><p id="Entity Definition">Entity Definition</p></h2>
|
|
||||||
|
|
||||||
In order to define what animations an entity has, you must add both an `animations` and a `scripts/animate` section to an entity's entity definition file.</br><h3></h3>
|
|
||||||
|
|
||||||
Here you can see the entity definition for pig.json:This means you will not see the move animation in the pig.json animation file either. If you would like to make a custom pig walk you can change this line to point to your custom animation.</br></br>Animations are specified as a short name, followed by their full resource name. The short name is used in animation controllers and the `scripts/animate` list, while the long name is used in the animations file.</br></br>In the `scripts/animate` section, you list the animations to play and in which order. You can either specify an animation directly, or specify a blend expression.</br><h4></h4>
|
|
||||||
<br / ><textarea readonly="true" cols="61" rows="32">
|
|
||||||
{
|
|
||||||
"format_version": "1.10.0",
|
|
||||||
"minecraft:client_entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:pig",
|
|
||||||
"min_engine_version": "1.8.0",
|
|
||||||
"materials": { "default": "pig" },
|
|
||||||
"textures": {
|
|
||||||
"default": "textures/entity/pig/pig",
|
|
||||||
"saddled": "textures/entity/pig/pig_saddle"
|
|
||||||
},
|
|
||||||
"geometry": {
|
|
||||||
"default": "geometry.pig.v1.8"
|
|
||||||
},
|
|
||||||
"animations": {
|
|
||||||
"setup": "animation.pig.setup",
|
|
||||||
"walk": "animation.quadruped.walk",
|
|
||||||
"look_at_target": "animation.common.look_at_target",
|
|
||||||
"baby_transform": "animation.pig.baby_transform"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"animate": [
|
|
||||||
"setup",
|
|
||||||
{ "walk": "query.modified_move_speed" },
|
|
||||||
"look_at_target",
|
|
||||||
{ "baby_transform": "query.is_baby" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"render_controllers": [ "controller.render.pig" ],
|
|
||||||
"spawn_egg": {
|
|
||||||
"texture": "spawn_egg",
|
|
||||||
"texture_index": 2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h1><p id="Animation Hierarchy">Animation Hierarchy</p></h1>
|
|
||||||
|
|
||||||
Animations are channel based (rotation, position, or scale), and within that, they are key-framed:</br></br>EntityAnimation: animation name</br>__BoneAnimation[]: bone name to animation for this animation</br>____AnimationChannel[]: rotation, scale, or translation to animate</br>______KeyFrame[]: the value for the channel to be at, at a specific time</br></br>All of the above concepts are described in a detailed, bottom-up approach below</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Upgrade from v1.10 to v1.17.30">Upgrade from v1.10 to v1.17.30</p></h1>
|
|
||||||
|
|
||||||
The major change with 1.17.30 is:</br>- Molang expressions inside transitions that contain capital letters are properly evaluated now. Strings inside such expressions are not forced to lowercase anymore and work as expected.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Upgrade from v1.7 Beta to v1.8">Upgrade from v1.7 Beta to v1.8</p></h1>
|
|
||||||
|
|
||||||
There have been few changes as we clean things up based on feedback and as we push the tech along the road map.To upgrade previous scripts, you'll want to do the following steps to all of your Molang scripts in the order listed:</br>1) entity.flags.foo --> query.foo</br>2) entity.member.foo --> query.foo</br>3) entity.foo --> variable.foo</br>4) params.foo --> global.foo</br>5) The general rule is that 'query' represents read-only values from the entity the script is running on, and 'variable' represents read-write data created by the user.</br>6) We've adopted snake_case for all names of things. You are welcome to use upper-case letters if you wish as we are case-insensitive, however we recommend snake_case in general.</br>7) Several variables previously set on mobs have been changed to use the query.foo format. Look through the updated list below to see what has been added and changed.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Upgrade from v1.8 Beta to v1.10">Upgrade from v1.8 Beta to v1.10</p></h1>
|
|
||||||
|
|
||||||
The three major changes with 1.10 are</br>- the ability to have animations reference other animations in an arbitrarily deep hierarchy.</br>- the parameters section of animation controllers has been replaced with the `variables` section.</br>- in the entity definition file, animation controllers are now listed in the `animations` section, and a `scriptsnimate` section has been added to define which root animations to play.</br>The v1.8 file format is backwards-compatible with v1.10 so you don't _need_ to change anything (although we recommend refactoring your files in the spirit of v1.10 as there is a slight performance win with the new format, as well as it being simpler to understand.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h1><p id="Key Frames">Key Frames</p></h1>
|
|
||||||
|
|
||||||
A key frame defines two values for a channel-specific transform to a specific bone at a specified time, one as time approaches the key frame time, and the second from that key frame time onwards.</br>As such, when interpolating between two key frames, one can define the slope of the animation curve in either a continuous or discontinuous manner.</br><h1><p id="Interpolation">Interpolation</p></h1>
|
|
||||||
|
|
||||||
Currently only linear interpolation is supported. Key frame "pre" and "post" settings allow control of the interpolation curve at any key frame.</br><h2></h2>
|
|
||||||
|
|
||||||
<h2><p id="Continuous Example">Continuous Example</p></h2>
|
|
||||||
|
|
||||||
This example spins the bone "head" around the y axis 1 rotation in 1 second.</br>Note that because interpolation is linear, at .25 seconds the head will be rotated to 90 degrees.</br><h3></h3>
|
|
||||||
<br / ><textarea readonly="true" cols="25" rows="8">
|
|
||||||
"head": {
|
|
||||||
"rotation": {
|
|
||||||
"0.0":[0, 0, 0],
|
|
||||||
"0.5": [ 0, 180, 0],
|
|
||||||
"1.0": [0, 360, 0]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h2><p id="Discontinuous Example">Discontinuous Example</p></h2>
|
|
||||||
|
|
||||||
Discontinuous just means that there won't be a smooth transition between key frames. It is useful if you want something to happen immediately.</br>This example scales the bone "head":</br>1. From 0 to 0.5 seconds (in the "pre" tag), the head bone is set to its normal scale of 1 in all dimensions [X, Y, Z]</br>2. At 0.5 seconds, the bone will instantly scale up to 2 times its normal size</br>3. From 0.5 to 1 second ("post"), the bone will re-scale back to its normal size of scale of 1 in all dimensions</br></br>Note In the larger example above of the file format, "pre" and "post" can also be defined by a Molang expression that calculates that value at runtime, allowing you to have a mathematically defined curve instead of being purely linear.</br><h3></h3>
|
|
||||||
<br / ><textarea readonly="true" cols="24" rows="10">
|
|
||||||
"head": {
|
|
||||||
"scale": {
|
|
||||||
"0.5": {
|
|
||||||
"pre": [1, 1, 1],
|
|
||||||
"post": 2.0
|
|
||||||
}
|
|
||||||
"1.0": [ 1.0 ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h1><p id="Names">Names</p></h1>
|
|
||||||
|
|
||||||
All names: animations, bones, states, etc, must all start with a letter and contain only alphanumerics, underscore, or period. It is recommended to use names in all lower-case</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Overview">Overview</p></h1>
|
|
||||||
|
|
||||||
The follows the current Minecraft JSON paradigms:</br>- Fields should be lower-case and use underscores (no spaces)</br>- All JSON files in the definitions directory and subtree will be read into and interpreted by the animation system</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Render Controllers">Render Controllers</p></h1>
|
|
||||||
|
|
||||||
The Render Controller needs an identifier and needs to follow the format of "controller.render.<name>". This name needs to match the name set in the Client Entity Definitions JSON.</br></br>Render Controllers are a way for the player to determine what renders on the entity. Players can set the geometry, materials, textures, and part visibility of the entity. In addition to setting the keys directly, players can use arrays to have the entity choose between different options.</br><h1><p id="Examples">Examples</p></h1>
|
|
||||||
|
|
||||||
<h2></h2>
|
|
||||||
|
|
||||||
<h3></h3>
|
|
||||||
Example Array for geometry from the sheep JSON<br / ><textarea readonly="true" cols="59" rows="8">
|
|
||||||
"arrays": {
|
|
||||||
"geometries": {
|
|
||||||
"Array.geos": ["Geometry.default", "Geometry.sheared"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"geometry": "Array.geos[query.is_sheared]",
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
Example Array for materials from the spider JSON<br / ><textarea readonly="true" cols="66" rows="8">
|
|
||||||
"arrays": {
|
|
||||||
"materials": {
|
|
||||||
"Array.materials": ["Material.default", "Material.invisible"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"materials": [{ "*": "Array.materials[query.is_invisible]" }],
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
Example Array for textures from the villager JSON<br / ><textarea readonly="true" cols="113" rows="8">
|
|
||||||
"arrays": {
|
|
||||||
"textures": {
|
|
||||||
"Array.skins": ["Texture.farmer", "Texture.librarian", "Texture.priest", "Texture.smith", "Texture.butcher"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"textures": ["Array.skins[query.variant]"]
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
Example with color for tinting of parts from Armor 1.0 render controller JSON:<br / ><textarea readonly="true" cols="94" rows="32">
|
|
||||||
"format_version": "1.8.0",
|
|
||||||
"render_controllers": {
|
|
||||||
"controller.render.armor.chest.v1.0": {
|
|
||||||
"arrays": {
|
|
||||||
"materials": {
|
|
||||||
"array.armor_material": [
|
|
||||||
"material.armor",
|
|
||||||
"material.armor_enchanted",
|
|
||||||
"material.armor_leather",
|
|
||||||
"material.armor_leather_enchanted"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"textures": {
|
|
||||||
"array.armor_texture": [
|
|
||||||
"texture.leather",
|
|
||||||
"texture.chain",
|
|
||||||
"texture.iron",
|
|
||||||
"texture.diamond",
|
|
||||||
"texture.gold"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"geometry": "geometry.armor",
|
|
||||||
"materials" : [
|
|
||||||
{ "body": "array.armor_material[query.armor_material_slot(1)]" },
|
|
||||||
{ "leftarm": "array.armor_material[query.armor_material_slot(1)]" },
|
|
||||||
{ "rightarm": "array.armor_material[query.armor_material_slot(1)]" }
|
|
||||||
],
|
|
||||||
"part_visibility" : [
|
|
||||||
{ "*": 0 },
|
|
||||||
{ "body": "query.has_armor_slot(1)" },
|
|
||||||
{ "leftarm": "query.has_armor_slot(1)" },
|
|
||||||
{ "rightarm": "query.has_armor_slot(1)" }
|
|
||||||
],
|
|
||||||
"color": {
|
|
||||||
"r": "query.armor_color_slot(1, 0)",
|
|
||||||
"g": "query.armor_color_slot(1, 1)",
|
|
||||||
"b": "query.armor_color_slot(1, 2)",
|
|
||||||
"a": "query.armor_color_slot(1, 3)"
|
|
||||||
},
|
|
||||||
"textures": ["array.armor_texture[query.armor_texture_slot(1)]", "texture.enchanted"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
Example with is_hurt_color from Creeper render controller JSON:<br / ><textarea readonly="true" cols="53" rows="16">
|
|
||||||
"format_version": "1.8.0",
|
|
||||||
"render_controllers": {
|
|
||||||
"controller.render.creeper": {
|
|
||||||
"geometry" : "Geometry.default",
|
|
||||||
"materials" : [{ "*": "Material.default" }],
|
|
||||||
"textures" : "Texture.default",
|
|
||||||
"is_hurt_color" : {
|
|
||||||
"r": 0.0,
|
|
||||||
"g": 0.0,
|
|
||||||
"b": 1.0,
|
|
||||||
"a": 0.5,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
Example with on_fire_color from Fireball render controller JSON:<br / ><textarea readonly="true" cols="53" rows="16">
|
|
||||||
"format_version": "1.8.0",
|
|
||||||
"render_controllers": {
|
|
||||||
"controller.render.fireball": {
|
|
||||||
"geometry" : "Geometry.default",
|
|
||||||
"materials" : [{ "*": "Material.default" }],
|
|
||||||
"textures" : "Texture.default",
|
|
||||||
"on_fire_color" : {
|
|
||||||
"r": 0.0,
|
|
||||||
"g": 0.0,
|
|
||||||
"b": 0.0,
|
|
||||||
"a": 0.0,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
Example with overlay_color from Wither Boss render controller JSON:<br / ><textarea readonly="true" cols="78" rows="21">
|
|
||||||
"format_version": "1.8.0",
|
|
||||||
"render_controllers": {
|
|
||||||
"controller.render.wither_boss": {
|
|
||||||
"arrays": {
|
|
||||||
"textures": {
|
|
||||||
"Array.wither_state": ["Texture.invulnerable", "Texture.default"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"geometry" : "Geometry.default",
|
|
||||||
"materials" : [{ "*": "Material.default" }],
|
|
||||||
"textures" : ["Array.wither_state[variable.display_normal_skin]"],
|
|
||||||
"overlay_color" : {
|
|
||||||
"r": "variable.is_invulnerable ? 1.0 : this",
|
|
||||||
"g": "variable.is_invulnerable ? 1.0 : this",
|
|
||||||
"b": "variable.is_invulnerable ? 1.0 : this",
|
|
||||||
"a": "variable.is_invulnerable ? query.overlay_alpha : this"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
Example with part_visibility for turning on and off visibility of parts from Llama JSON:<br / ><textarea readonly="true" cols="192" rows="21">
|
|
||||||
"format_version": "1.8.0",
|
|
||||||
"render_controllers": {
|
|
||||||
"controller.render.llama": {
|
|
||||||
"arrays": {
|
|
||||||
"textures": {
|
|
||||||
"Array.base": ["Texture.creamy", "Texture.white", "Texture.brown", "Texture.gray"],
|
|
||||||
"Array.decor": ["Texture.decor_none", "Texture.decor_white", "Texture.decor_orange", "Texture.decor_magenta", "Texture.decor_light_blue", "Texture.decor_yellow", "Texture.decor_lime", "Texture.decor_pink", "Texture.decor_gray", "Texture.decor_silver", "Texture.decor_cyan", "Texture.decor_purple", "Texture.decor_blue", "Texture.decor_brown", "Texture.decor_green", "Texture.decor_red", "Texture.decor_black"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"geometry": "Geometry.default",
|
|
||||||
"part_visibility": [{ "chest*": "query.is_chested" }],
|
|
||||||
"materials": [{ "*": "Material.default" }],
|
|
||||||
"textures": [
|
|
||||||
"Array.base[query.variant]",
|
|
||||||
"Array.decor[variable.decor_texture_index]",
|
|
||||||
"Texture.decor_none"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
Material array example from Horse render controllers. Saddle will override Mane, which will override TailA, etc.:<br / ><textarea readonly="true" cols="42" rows="8">
|
|
||||||
"materials": [
|
|
||||||
{ "*": "Material.default" },
|
|
||||||
{ "TailA": "Material.horse_hair" },
|
|
||||||
{ "Mane": "Material.horse_hair" },
|
|
||||||
{ "*Saddle*": "Material.horse_saddle" }
|
|
||||||
],
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h1><p id="Getting Started">Getting Started</p></h1>
|
|
||||||
|
|
||||||
To begin create a new folder named "render_controllers" in the root of the Resource Pack you want to add the new Render Controller JSON inside.</br><h2></h2>
|
|
||||||
Example render controllers JSON for the ocelot<br / ><textarea readonly="true" cols="91" rows="15">
|
|
||||||
"format_version": "1.8.0",
|
|
||||||
"render_controllers": {
|
|
||||||
"controller.render.ocelot": {
|
|
||||||
"arrays": {
|
|
||||||
"textures": {
|
|
||||||
"Array.skins": ["Texture.wild", "Texture.black", "Texture.red", "Texture.siamese"]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"geometry": "Geometry.default",
|
|
||||||
"materials": [{ "*": "Material.default" }],
|
|
||||||
"textures": ["Array.skins[query.variant]"]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h1><p id="Transforms">Transforms</p></h1>
|
|
||||||
|
|
||||||
- Order of operations: vertices are translated, rotated, then scaled.</br>- Animation data is assumed to be hierarchical, and is applied to a bone by name matching the bone name in the animation data to the targeted geometry's skeleton.</br>- Not every bone needs to be animated</br>- You can animate bones that don't exist in the targeted geometry (missing bones are ignored).</br>- For each of scale, rotation, position, one can set the fields individually or uniformly with a single value. For example, these are equivalent.</br><h2></h2>
|
|
||||||
<br / ><textarea readonly="true" cols="25" rows="4">
|
|
||||||
"scale": [2.0, 2.0, 2.0]
|
|
||||||
"scale": 2.0
|
|
||||||
"scale": [2.0]
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
@@ -1,312 +0,0 @@
|
|||||||
<h1>BIOMES DOCUMENTATION </br>Version: 1.18.1.2</h1>
|
|
||||||
<h2><p id="Index">Index</p></h2>
|
|
||||||
<table border="1">
|
|
||||||
<tr> <th><a href="#Overview">Overview</a></th> </tr>
|
|
||||||
<tr> <th><a href="#JSON format">JSON format</a></th> </tr>
|
|
||||||
<tr> <th><a href="#Adding biomes">Adding biomes</a></th> </tr>
|
|
||||||
<tr> <th><a href="#Schema">Schema</a></th> </tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a>
|
|
||||||
<h1><p id="Overview">Overview</p></h1>
|
|
||||||
|
|
||||||
Biomes describe how a local patch of the world should look and behave. By writing custom biome data you could:</br>1) Change the general shape of terrain for a biome.</br>2) Change the ratio of frequency of biome types.</br>3) Change the blocks that make up the biome, both at the surface and below.</br>4) Change the distribution of decorative features (e.g. trees, grass, etc.) for a biome.</br>5) Change the mobs that spawn for a biome.</br>6) Change the climate for a biome.</br>7) ...and more!</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="JSON format">JSON format</p></h1>
|
|
||||||
|
|
||||||
All biomes should specify the version that they target via the "format_version" field. The remainder of the biome data is divided up into independent JSON sub-objects, or components. In general you can think of the presence of a component as defining what game behaviors a biome participates in with the component fields defining how it participates. Broadly there are two categories of components:</br>1) Namespaced components (i.e. those with a 'name:' prefix) map to specific behaviors in-game; they may have member fields that parameterize that behavior; only names that have a valid mapping are supported.</br>2) Components with no namespace are treated as 'tags': any name consisting of alphanumeric characters, '.' and '_' is permitted; the tag is attached to the biome so that either code or data may check for its existence; tag components may not have member fields.</br></br>See the full biome schema below for additional details and the full list of namespaced components.</br><h2></h2>
|
|
||||||
Here is a sample biome<br / ><textarea readonly="true" cols="51" rows="32">
|
|
||||||
{
|
|
||||||
"plains": {
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
|
|
||||||
"minecraft:climate": {
|
|
||||||
"downfall": 0.4,
|
|
||||||
"snow_accumulation": [ 0.0, 0.125 ],
|
|
||||||
"temperature": 0.8
|
|
||||||
},
|
|
||||||
"minecraft:overworld_height": {
|
|
||||||
"noise_type": "lowlands"
|
|
||||||
},
|
|
||||||
"minecraft:surface_parameters": {
|
|
||||||
"sea_floor_depth": 7,
|
|
||||||
"sea_floor_material": "minecraft:gravel",
|
|
||||||
"foundation_material": "minecraft:stone",
|
|
||||||
"mid_material": "minecraft:dirt",
|
|
||||||
"top_material": "minecraft:grass"
|
|
||||||
},
|
|
||||||
"minecraft:overworld_generation_rules": {
|
|
||||||
"hills_transformation": [
|
|
||||||
[ "forest_hills", 1 ],
|
|
||||||
[ "forest", 2 ]
|
|
||||||
],
|
|
||||||
"mutate_transformation": "sunflower_plains",
|
|
||||||
"generate_for_climates": [
|
|
||||||
[ "medium", 3 ],
|
|
||||||
[ "warm", 1 ],
|
|
||||||
[ "cold", 1 ]
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"animal": {},
|
|
||||||
"monster": {},
|
|
||||||
"overworld": {},
|
|
||||||
"plains": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Adding biomes">Adding biomes</p></h1>
|
|
||||||
|
|
||||||
Biomes are read from JSON files in the biomes subfolders of behavior packs. Loading enforces one biome per file; the file name and the actual biome name must match. Adding a file with a new name to the biome data location will make it available for the game to use, while existing biomes can be overriden via files that match their existing name. Note that if you add a new biome you'll need to write component data that allows it to participate in world generation (see full schema below), or else it won't show up in your worlds!</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Schema">Schema</p></h1>
|
|
||||||
|
|
||||||
<h2></h2>
|
|
||||||
<br / ><textarea readonly="true" cols="192" rows="32">
|
|
||||||
{
|
|
||||||
object "minecraft:climate"[0,7] : opt // Describes temperature, humidity, precipitation, etc. Biomes without this component will have default values.
|
|
||||||
{
|
|
||||||
float "temperature" : opt
|
|
||||||
float "downfall" : opt
|
|
||||||
float "red_spores" : opt
|
|
||||||
float "blue_spores" : opt
|
|
||||||
float "ash" : opt
|
|
||||||
float "white_ash" : opt
|
|
||||||
array "snow_accumulation"[2] : opt
|
|
||||||
{
|
|
||||||
float "[0..0]"
|
|
||||||
float "[1..1]"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
object "minecraft:overworld_height"[0,2] : opt // Noise parameters used to drive terrain height in the Overworld.
|
|
||||||
{
|
|
||||||
array "noise_params"[2] : opt
|
|
||||||
{
|
|
||||||
float "[0..0]"
|
|
||||||
float "[1..1]"
|
|
||||||
}
|
|
||||||
string "noise_type"<"stone_beach", "deep_ocean", "default", "default_mutated", "lowlands", "river", "ocean", "taiga", "mountains", "highlands", "mushroom", "less_extreme", "extreme", "beach", "swamp"> : opt
|
|
||||||
}
|
|
||||||
object "minecraft:forced_features"[0,1] : opt // Force specific decorative features (trees, plants, etc.) to appear in this Biome, regardless of normal decoration rules.
|
|
||||||
{
|
|
||||||
array "<identifier>" : opt
|
|
||||||
{
|
|
||||||
object "<any array element>" : opt
|
|
||||||
{
|
|
||||||
molang "iterations" // Number of scattered positions to generate
|
|
||||||
object "scatter_chance" : opt // Probability numerator / denominator that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will.
|
|
||||||
{
|
|
||||||
int "numerator"<1-*>
|
|
||||||
int "denominator"<1-*>
|
|
||||||
}
|
|
||||||
molang "scatter_chance" : opt // Probability (0-100] that this scatter will occur. Not evaluated each iteration; either no iterations will run, or all will.
|
|
||||||
enumerated_value "coordinate_eval_order"<"xyz", "xzy", "yxz", "yzx", "zxy", "zyx"> : opt // The order in which coordinates will be evaluated. Should be used when a coordinate depends on another. If omitted, defaults to "xzy".
|
|
||||||
molang "x" : opt // Expression for the coordinate (evaluated each iteration). Mutually exclusive with random distribution object below.
|
|
||||||
object "x" : opt // Distribution for the coordinate (evaluated each iteration). Mutually exclusive with Molang expression above.
|
|
||||||
{
|
|
||||||
enumerated_value "distribution"<"uniform", "gaussian", "inverse_gaussian", "triangle", "fixed_grid", "jittered_grid"> // Type of distribution - uniform random, gaussian (centered in the range), triangle (centered in the range), or grid (either fixed-step or jittered)
|
|
||||||
int "step_size"<1-*> : opt // When the distribution type is grid, defines the distance between steps along this axis
|
|
||||||
int "grid_offset"<0-*> : opt // When the distribution type is grid, defines the offset along this axis
|
|
||||||
array "extent"[2]
|
|
||||||
{
|
|
||||||
molang "[0..0]" : opt // Lower bound (inclusive) of the scatter range, as an offset from the input point to scatter around
|
|
||||||
molang "[1..1]" : opt // Upper bound (inclusive) of the scatter range, as an offset from the input point to scatter around
|
|
||||||
}
|
|
||||||
}
|
|
||||||
molang "z" : opt // Expression for the coordinate (evaluated each iteration). Mutually exclusive with random distribution object below.
|
|
||||||
object "z" : opt // Distribution for the coordinate (evaluated each iteration). Mutually exclusive with Molang expression above.
|
|
||||||
{
|
|
||||||
enumerated_value "distribution"<"uniform", "gaussian", "inverse_gaussian", "triangle", "fixed_grid", "jittered_grid"> // Type of distribution - uniform random, gaussian (centered in the range), triangle (centered in the range), or grid (either fixed-step or jittered)
|
|
||||||
int "step_size"<1-*> : opt // When the distribution type is grid, defines the distance between steps along this axis
|
|
||||||
int "grid_offset"<0-*> : opt // When the distribution type is grid, defines the offset along this axis
|
|
||||||
array "extent"[2]
|
|
||||||
{
|
|
||||||
molang "[0..0]" : opt // Lower bound (inclusive) of the scatter range, as an offset from the input point to scatter around
|
|
||||||
molang "[1..1]" : opt // Upper bound (inclusive) of the scatter range, as an offset from the input point to scatter around
|
|
||||||
}
|
|
||||||
}
|
|
||||||
molang "y" : opt // Expression for the coordinate (evaluated each iteration). Mutually exclusive with random distribution object below.
|
|
||||||
object "y" : opt // Distribution for the coordinate (evaluated each iteration). Mutually exclusive with Molang expression above.
|
|
||||||
{
|
|
||||||
enumerated_value "distribution"<"uniform", "gaussian", "inverse_gaussian", "triangle", "fixed_grid", "jittered_grid"> // Type of distribution - uniform random, gaussian (centered in the range), triangle (centered in the range), or grid (either fixed-step or jittered)
|
|
||||||
int "step_size"<1-*> : opt // When the distribution type is grid, defines the distance between steps along this axis
|
|
||||||
int "grid_offset"<0-*> : opt // When the distribution type is grid, defines the offset along this axis
|
|
||||||
array "extent"[2]
|
|
||||||
{
|
|
||||||
molang "[0..0]" : opt // Lower bound (inclusive) of the scatter range, as an offset from the input point to scatter around
|
|
||||||
molang "[1..1]" : opt // Upper bound (inclusive) of the scatter range, as an offset from the input point to scatter around
|
|
||||||
}
|
|
||||||
}
|
|
||||||
feature_reference "places_feature"
|
|
||||||
string "identifier"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
object "minecraft:ignore_automatic_features" : opt // No features will be automatically attached to this Biome, only features specified in the minecraft:forced_features component will appear.
|
|
||||||
object "minecraft:surface_parameters"[0,6] : opt // Control the blocks used for the default Minecraft Overworld terrain generation.
|
|
||||||
{
|
|
||||||
"top_material" // Controls the block type used for the surface of this biome.
|
|
||||||
"mid_material" // Controls the block type used in a layer below the surface of this biome.
|
|
||||||
"sea_floor_material" // Controls the block type used as a floor for bodies of water in this biome.
|
|
||||||
"foundation_material" // Controls the block type used deep underground in this biome.
|
|
||||||
"sea_material" // Controls the block type used for the bodies of water in this biome.
|
|
||||||
int "sea_floor_depth" // Controls how deep below the world water level the floor should occur.
|
|
||||||
}
|
|
||||||
object "minecraft:surface_material_adjustments"[0,1] : opt // Specify fine-detail changes to blocks used in terrain generation (based on a noise function)
|
|
||||||
{
|
|
||||||
array "adjustments" : opt // All adjustments that match the column's noise values will be applied in the order listed.
|
|
||||||
{
|
|
||||||
object "<any array element>"
|
|
||||||
{
|
|
||||||
object "materials"
|
|
||||||
{
|
|
||||||
"top_material" : opt // Controls the block type used for the surface of this biome when this adjustment is active.
|
|
||||||
"mid_material" : opt // Controls the block type used in a layer below the surface of this biome when this adjustment is active.
|
|
||||||
"sea_floor_material" : opt // Controls the block type used as a floor for bodies of water in this biome when this adjustment is active.
|
|
||||||
"foundation_material" : opt // Controls the block type used deep underground in this biome when this adjustment is active.
|
|
||||||
"sea_material" : opt // Controls the block type used in the bodies of water in this biome when this adjustment is active.
|
|
||||||
}
|
|
||||||
array "noise_range"[2] : opt // Defines a range of noise values [min, max) for which this adjustment should be applied.
|
|
||||||
{
|
|
||||||
float "[0..0]"<-1.000000-1.000000>
|
|
||||||
float "[1..1]"<-1.000000-1.000000>
|
|
||||||
}
|
|
||||||
array "height_range"[2] : opt // Defines a range of noise values [min, max] for which this adjustment should be applied.
|
|
||||||
{
|
|
||||||
molang "[0..0]"
|
|
||||||
molang "[1..1]"
|
|
||||||
}
|
|
||||||
float "noise_frequency_scale" : opt // The scale to multiply by the position when accessing the noise value for the material adjustments.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
object "minecraft:swamp_surface"[0,6] : opt // Similar to overworld_surface. Adds swamp surface details.
|
|
||||||
{
|
|
||||||
"top_material" // Controls the block type used for the surface of this biome.
|
|
||||||
"mid_material" // Controls the block type used in a layer below the surface of this biome.
|
|
||||||
"sea_floor_material" // Controls the block type used as a floor for bodies of water in this biome.
|
|
||||||
"foundation_material" // Controls the block type used deep underground in this biome.
|
|
||||||
"sea_material" // Controls the block type used for the bodies of water in this biome.
|
|
||||||
int "sea_floor_depth" // Controls how deep below the world water level the floor should occur.
|
|
||||||
}
|
|
||||||
object "minecraft:frozen_ocean_surface"[0,6] : opt // Similar to overworld_surface. Adds icebergs.
|
|
||||||
{
|
|
||||||
"top_material" // Controls the block type used for the surface of this biome.
|
|
||||||
"mid_material" // Controls the block type used in a layer below the surface of this biome.
|
|
||||||
"sea_floor_material" // Controls the block type used as a floor for bodies of water in this biome.
|
|
||||||
"foundation_material" // Controls the block type used deep underground in this biome.
|
|
||||||
"sea_material" // Controls the block type used for the bodies of water in this biome.
|
|
||||||
int "sea_floor_depth" // Controls how deep below the world water level the floor should occur.
|
|
||||||
}
|
|
||||||
object "minecraft:mesa_surface"[0,10] : opt // Similar to overworld_surface. Adds colored strata and optional pillars.
|
|
||||||
{
|
|
||||||
"top_material" // Controls the block type used for the surface of this biome.
|
|
||||||
"mid_material" // Controls the block type used in a layer below the surface of this biome.
|
|
||||||
"sea_floor_material" // Controls the block type used as a floor for bodies of water in this biome.
|
|
||||||
"foundation_material" // Controls the block type used deep underground in this biome.
|
|
||||||
"sea_material" // Controls the block type used for the bodies of water in this biome.
|
|
||||||
int "sea_floor_depth" // Controls how deep below the world water level the floor should occur.
|
|
||||||
"clay_material"
|
|
||||||
"hard_clay_material"
|
|
||||||
bool "bryce_pillars"
|
|
||||||
bool "has_forest"
|
|
||||||
}
|
|
||||||
object "minecraft:nether_surface" : opt // Use default Minecraft Nether terrain generation.
|
|
||||||
object "minecraft:the_end_surface" : opt // Use default Minecraft End terrain generation.
|
|
||||||
object "minecraft:capped_surface"[0,5] : opt // Generates surface on blocks with non-solid blocks above or below.
|
|
||||||
{
|
|
||||||
array "floor_materials"[1,*] // Materials used for the surface floor.
|
|
||||||
{
|
|
||||||
block_reference "<any array element>"
|
|
||||||
}
|
|
||||||
array "ceiling_materials"[1,*] // Materials used for the surface ceiling.
|
|
||||||
{
|
|
||||||
block_reference "<any array element>"
|
|
||||||
}
|
|
||||||
block_reference "sea_material" // Material used to replace air blocks below sea level.
|
|
||||||
block_reference "foundation_material" // Material used to repalce solid blocks that are not surface blocks.
|
|
||||||
block_reference "beach_material" : opt // Material used to decorate surface near sea level.
|
|
||||||
}
|
|
||||||
object "minecraft:mountain_parameters"[0,3] : opt // Noise parameters used to drive mountain terrain generation in Overworld
|
|
||||||
{
|
|
||||||
float "peaks_factor" : opt
|
|
||||||
object "steep_material_adjustment" : opt // Defines surface material for steep slopes
|
|
||||||
{
|
|
||||||
"material" : opt // Block type use as steep material.
|
|
||||||
bool "north_slopes" : opt // Enable for north facing slopes
|
|
||||||
bool "south_slopes" : opt // Enable for south facing slopes
|
|
||||||
bool "west_slopes" : opt // Enable for west facing slopes
|
|
||||||
bool "east_slopes" : opt // Enable for east facing slopes
|
|
||||||
}
|
|
||||||
object "top_slide" : opt // Controls the density tapering that happens at the top of the world to prevent terrain from reaching too high
|
|
||||||
{
|
|
||||||
bool "enabled" // If false, top slide will be disabled. If true, other parameters will be taken into account
|
|
||||||
}
|
|
||||||
}
|
|
||||||
object "minecraft:overworld_generation_rules"[0,5] : opt // Control how this biome is instantiated (and then potentially modified) during world generation of the overworld.
|
|
||||||
{
|
|
||||||
biome_reference "hills_transformation" : opt
|
|
||||||
array "hills_transformation"[1,*] : opt
|
|
||||||
{
|
|
||||||
biome_reference "<any array element>" : opt
|
|
||||||
array "<any array element>"[2] : opt
|
|
||||||
{
|
|
||||||
biome_reference "[0..0]"
|
|
||||||
int "[1..1]"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
biome_reference "mutate_transformation" : opt
|
|
||||||
array "mutate_transformation"[1,*] : opt
|
|
||||||
{
|
|
||||||
biome_reference "<any array element>" : opt
|
|
||||||
array "<any array element>"[2] : opt
|
|
||||||
{
|
|
||||||
biome_reference "[0..0]"
|
|
||||||
int "[1..1]"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
array "generate_for_climates" : opt // Controls the world generation climate categories that this biome can spawn for. A single biome can be associated with multiple categories with different weightings.
|
|
||||||
{
|
|
||||||
array "<any array element>"[2]
|
|
||||||
{
|
|
||||||
enumerated_value "[0..0]"<"medium", "warm", "lukewarm", "cold", "frozen"> // Name of a climate category
|
|
||||||
int "[1..1]" // Weight with which this biome should be selected, relative to other biomes in the same category
|
|
||||||
}
|
|
||||||
}
|
|
||||||
biome_reference "river_transformation" : opt
|
|
||||||
array "river_transformation"[1,*] : opt
|
|
||||||
{
|
|
||||||
biome_reference "<any array element>" : opt
|
|
||||||
array "<any array element>"[2] : opt
|
|
||||||
{
|
|
||||||
biome_reference "[0..0]"
|
|
||||||
int "[1..1]"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
biome_reference "shore_transformation" : opt
|
|
||||||
array "shore_transformation"[1,*] : opt
|
|
||||||
{
|
|
||||||
biome_reference "<any array element>" : opt
|
|
||||||
array "<any array element>"[2] : opt
|
|
||||||
{
|
|
||||||
biome_reference "[0..0]"
|
|
||||||
int "[1..1]"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
object "minecraft:multinoise_generation_rules"[0,5] : opt // Controls how this biome is instantiated (and then potentially modified) during world generation of the nether.
|
|
||||||
{
|
|
||||||
float "target_temperature" : opt // Temperature with which this biome should selected, relative to other biomes.
|
|
||||||
float "target_humidity" : opt // Humidity with which this biome should selected, relative to other biomes.
|
|
||||||
float "target_altitude" : opt // Altitude with which this biome should selected, relative to other biomes.
|
|
||||||
float "target_weirdness" : opt // Weirdness with which this biome should selected, relative to other biomes.
|
|
||||||
float "weight" : opt // Weight with which this biome should selected, relative to other biomes.
|
|
||||||
}
|
|
||||||
object "minecraft:legacy_world_generation_rules" : opt // Additional world generation control applicable only to legacy limited worlds.
|
|
||||||
object "[a-z0-9_.:]+" : opt // Attach arbitrary string tags to this biome
|
|
||||||
}
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
@@ -1,923 +0,0 @@
|
|||||||
<h1>BLOCKS DOCUMENTATION </br>Version: 1.18.1.2</h1>
|
|
||||||
<h2><p id="Index">Index</p></h2>
|
|
||||||
<table border="1">
|
|
||||||
<tr> <th><a href="#Blocks">Blocks</a></th> </tr>
|
|
||||||
<tr> <td> <a href="#Block Components"> Block Components</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Block Definition Properties"> Block Definition Properties</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Block Description Properties"> Block Description Properties</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Block Event Responses"> Block Event Responses</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Block Trigger Components"> Block Trigger Components</a> </tr> </td>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a>
|
|
||||||
<h1><p id="Blocks">Blocks</p></h1>
|
|
||||||
|
|
||||||
<h1><p id="Block Components">Block Components</p></h1>
|
|
||||||
|
|
||||||
<h2></h2>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:3;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:3;">Name</th> <th style="border-style:solid; border-width:3;">Type</th> <th style="border-style:solid; border-width:3;">Default Value</th> <th style="border-style:solid; border-width:3;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:block_light_absorption</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Integer</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">0</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">The amount of light this block will absorb.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:block_light_emission</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Decimal</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">0.0</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">The amount of light this block will emit in a range [0.0, 1.0].</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:breakonpush</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Boolean</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">When pushed by a piston the block breaks</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:breathability</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Enumerator</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">solid</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Property describing the breathability of this block and whether it is treated as a solid or as air.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:creative_category</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Specifies the creative group for the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:destroy_time</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Decimal</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">0.0</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Sets the destroy time property for the block. Greater numbers result in greater mining times. Time is measured in seconds with base equipment.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:display_name</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Specifies the language file key that maps to what text will be displayed when you hover over the block.</br>Experimental toggles required: Holiday Creator Features</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:entity_collision</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Boolean</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">false</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Can only be set to false, it disables the collision of the block with entities</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">origin</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Array</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">[-8.0, 0.0, -8.0]</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Minimal position Bounds of the collision box</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">size</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Array</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">[16.0, 16.0, 16.0]</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Size of each side of the box of the component</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:explosion_resistance</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Decimal</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">0.0</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Sets the explosion resistance for this block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:flammable</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Describes the flammable properties for this block.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">burn_odds</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Integer</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">0</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">How likely the block will be destroyed by flames when on fire. Value must be greater than or equal to 0.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">flame_odds</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Integer</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">0</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">How likely the block will catch flame when next to a fire. Value must be greater than or equal to 0.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:friction</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Decimal</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">0.1</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Property describing the friction for this block. Friction effects an entities movements when it walks on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:geometry</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">The geometry description identifier to use, this identifier must match an existing geometry identifier in any of the currently loaded resource packs.</br>Experimental toggles required: Holiday Creator Features</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:immovable</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Boolean</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">An Immovable block cannot be pushed by pistons</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:loot</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">The path to the loot table, relative to the behavior pack.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:map_color</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">A color represented as a hex value. This will be the color rendered to a map.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:material_instances</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Maps face or material_instance names in a geometry file to an actual material instance. Material instance can either be a full material instance or a name to another already defined instance</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:onlypistonpush</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Boolean</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Blocks with those components won't stick to stickyPistons</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:part_visibility</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Maps bone names in a geometry file to a condition that turns their rendering on/off. The condition should be a Molang query that uses block properties to determine true/falseSupported queries include 'has_block_property', 'block_property', and other queries that can evaluate without knowledge of the block's in-game positional or player affected data.</br>Experimental toggles required: Upcoming Creator Features</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:pick_collision</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Boolean</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">false</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Can only be set to false, it disables the collision of the block with entities</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">origin</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Array</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">[-8.0, 0.0, -8.0]</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Minimal position Bounds of the collision box</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">size</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Array</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">[16.0, 16.0, 16.0]</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Size of each side of the box of the component</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:placement_filter</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Sets rules for under what conditions the block can be placed/survive</br><h3><p id="conditions">conditions</p></h3>
|
|
||||||
|
|
||||||
List of conditions where the block can be placed/survive</br><h4></h4>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:1;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:1;">Name</th> <th style="border-style:solid; border-width:1;">Type</th> <th style="border-style:solid; border-width:1;">Default Value</th> <th style="border-style:solid; border-width:1;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">allowed_faces</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">Array</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px"></td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">List of any of the following strings: up, down, north, south, east, west, side, all</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">block_filter</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">Array</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px"></td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">List of blocks (can use tags to specify them) that this block can be placed against in the allowed_faces direction</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:preventsjumping</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Boolean</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">this component makes it so actors can't jump when walking on this block</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:random_ticking</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Describes the component that will trigger an even at a regular interval between two values</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Trigger</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">on_tick</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:1;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:1;">Name</th> <th style="border-style:solid; border-width:1;">Type</th> <th style="border-style:solid; border-width:1;">Default Value</th> <th style="border-style:solid; border-width:1;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">condition</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">1</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">The condition of event to be executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">event</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">set_block_property</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">The type of event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">range</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">Array</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">[10, 10]</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">The Range between which the component will trigger his event.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">The target of event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:rotation</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Vector [a, b, c]</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">rotation[0, 0, 0]</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">This is the block's rotation around the center of the cube in degrees. The rotation order is x-y-z.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:ticking</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Describes the component that will trigger an even at a regular interval between two values</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Trigger</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">on_tick</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:1;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:1;">Name</th> <th style="border-style:solid; border-width:1;">Type</th> <th style="border-style:solid; border-width:1;">Default Value</th> <th style="border-style:solid; border-width:1;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">condition</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">1</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">The condition of event to be executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">event</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">set_block_property</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">The type of event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">range</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">Array</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">[10, 10]</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">The Range between which the component will trigger his event.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">The target of event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">looping</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Boolean</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">true</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Does the event loop</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">range</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Array</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">[10, 10]</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The Range between which the component will trigger his event.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:unit_cube</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Specifies that a unit cube is to be used with tessellation.</br>Experimental toggles required: Holiday Creator Features</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:unwalkable</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Boolean</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">false</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Sets the block as unwalkable. Mobs would not attempt to path over top of it when the value is set to true.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Block Definition Properties">Block Definition Properties</p></h1>
|
|
||||||
|
|
||||||
These properties are part of the Block Definition. This helps the system determine how to parse and initialize this block.</br><h2></h2>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:3;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:3;">Name</th> <th style="border-style:solid; border-width:3;">Type</th> <th style="border-style:solid; border-width:3;">Default Value</th> <th style="border-style:solid; border-width:3;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">format_version</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Specifies the version of the game this entity was made in. If the version is lower than the current version, any changes made to the entity in the vanilla version will be applied to it.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<h2>Code Example</h2>
|
|
||||||
Example<br / ><textarea readonly="true" cols="66" rows="20">
|
|
||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:block": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "design:lavenderstone"
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:loot": "loot_tables/chests/simple_dungeon.json",
|
|
||||||
"minecraft:destroy_time": 4.0,
|
|
||||||
"minecraft:friction": 0.6,
|
|
||||||
"minecraft:map_color": "#00ff00",
|
|
||||||
"minecraft:flammable": {
|
|
||||||
"flame_odds": 50,
|
|
||||||
"burn_odds": 0
|
|
||||||
},
|
|
||||||
"minecraft:block_light_emission": 1.0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Block Description Properties">Block Description Properties</p></h1>
|
|
||||||
|
|
||||||
<h2></h2>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:3;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:3;">Name</th> <th style="border-style:solid; border-width:3;">Type</th> <th style="border-style:solid; border-width:3;">Default Value</th> <th style="border-style:solid; border-width:3;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">identifier</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">The identifier for this block. The name must include a namespace and must not use the Minecraft namespace unless overriding a Vanilla block.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Block Event Responses">Block Event Responses</p></h1>
|
|
||||||
|
|
||||||
Event responses for block trigger components.</br><h2></h2>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:3;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:3;">Name</th> <th style="border-style:solid; border-width:3;">Type</th> <th style="border-style:solid; border-width:3;">Default Value</th> <th style="border-style:solid; border-width:3;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">add_mob_effect</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Apply mob effect to target.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">amplifier</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Integer</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">0</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The amplifier for the mob effect.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">duration</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Decimal</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">0.0</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The duration of the mob effect.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">effect</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The mob effect to apply.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Minecraft Filter</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target context to execute against.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">damage</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Deals damage to the target.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">amount</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Integer</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">0</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The amount of damage to deal.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Minecraft Filter</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target context to execute against.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">type</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The type of damage to deal.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">decrement_stack</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Decrement item stack.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">die</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Kill target. If target is self and this is run from a block then destroy the block.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Minecraft Filter</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target context to execute against.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">play_effect</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Spawns a particle effect relative to target position.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">data</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Integer</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">0</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Particle data value.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">effect</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The name of the particle effect to create.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Minecraft Filter</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target context to execute against.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">play_sound</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Play a sound relative to target position.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">sound</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The name of the sound to play.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Minecraft Filter</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target context to execute against.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">remove_mob_effect</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Removes mob effect from target.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">effect</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The mob effect to remove. Use 'all' to remove all mob effects from target.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Minecraft Filter</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target context to execute against.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">run_command</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Triggers a slash command or a list of slash commands.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">command</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Slash command to run.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">command array</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Array</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">List of slash commands to run.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Minecraft Filter</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target context to execute against.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">set_block</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Sets this block to another block type.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">block_type</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The type of block to set.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">set_block_at_pos</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Sets a block relative to this block to another block type.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">block_offset</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Vector [a, b, c]</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">[0.0, 0.0, 0.0]</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The offset from the block's center.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">block_type</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The type of block to set.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">set_block_property</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Sets a block property on this block.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">property</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Molang</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Block property to set on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">spawn_loot</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Spawn loot from block.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">table</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">File path, relative to the Behavior Pack's path, to the loot table file.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">swing</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Event causes the actor to swing.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">teleport</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Teleport target randomly around destination point.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">avoid_water</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Boolean</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">true</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Determines if the teleport avoids putting the target in water.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">destination</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Vector [a, b, c]</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">[0.0, 0.0, 0.0]</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Origin destination of the teleport.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">land_on_block</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Boolean</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">true</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Determines if the teleport places the target on a block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">max_range</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Vector [a, b, c]</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">[8.0, 8.0, 8.0]</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Max range the target can teleport relative to the origin destination.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Minecraft Filter</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target context to execute against.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">transform_item</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Transforms item into another item.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">transform</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Name of the item it should transform into</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<h2>Code Example</h2>
|
|
||||||
Event Response Example<br / ><textarea readonly="true" cols="61" rows="23">
|
|
||||||
|
|
||||||
"minecraft:block": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "test:on_interact_change_state_block",
|
|
||||||
"properties": {
|
|
||||||
"minecraft:direction": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:on_interact": {
|
|
||||||
"event": "test_event"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"events": {
|
|
||||||
"test_event": {
|
|
||||||
"set_block_property": {
|
|
||||||
"minecraft:direction": "1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Block Trigger Components">Block Trigger Components</p></h1>
|
|
||||||
|
|
||||||
<h2></h2>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:3;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:3;">Name</th> <th style="border-style:solid; border-width:3;">Type</th> <th style="border-style:solid; border-width:3;">Default Value</th> <th style="border-style:solid; border-width:3;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:on_fall_on</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Describes event for this block.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">condition</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The condition of event to be executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">event</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">min_fall_distance</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Decimal</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">0.0</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The minimum distance in blocks that an actor needs to fall to trigger this event.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target of event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:on_interact</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Describes event for this block.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">condition</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The condition of event to be executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">event</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target of event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:on_placed</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Describes event for this block.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">condition</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The condition of event to be executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">event</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target of event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:on_player_destroyed</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Describes event for this block.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">condition</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The condition of event to be executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">event</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target of event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:on_player_placing</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Describes event for this block.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">condition</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The condition of event to be executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">event</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target of event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:on_step_off</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Describes event for this block.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">condition</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The condition of event to be executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">event</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target of event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:on_step_on</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Describes event for this block.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">condition</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The condition of event to be executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">event</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">target</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">self</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The target of event executed on the block.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,137 +0,0 @@
|
|||||||
<h1>ENTITY EVENTS DOCUMENTATION </br>Version: 1.18.1.2</h1>
|
|
||||||
<h2><p id="Index">Index</p></h2>
|
|
||||||
<table border="1">
|
|
||||||
<tr> <th><a href="#Animation Controller Events">Animation Controller Events</a></th> </tr>
|
|
||||||
<tr> <th><a href="#Animation Events">Animation Events</a></th> </tr>
|
|
||||||
<tr> <th><a href="#Animation Notes">Animation Notes</a></th> </tr>
|
|
||||||
<tr> <th><a href="#Events">Events</a></th> </tr>
|
|
||||||
<tr> <th><a href="#General Notes">General Notes</a></th> </tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a>
|
|
||||||
<h1><p id="Animation Controller Events">Animation Controller Events</p></h1>
|
|
||||||
|
|
||||||
</br>Animation controllers can trigger events on entry or exit of a state. Events to trigger on state entry go in the "on_entry" section, those on exit go in the "on_exit" section.</br><h2></h2>
|
|
||||||
<br / ><textarea readonly="true" cols="105" rows="23">
|
|
||||||
|
|
||||||
{
|
|
||||||
"format_version": "1.8.0",
|
|
||||||
"animation_controllers": {
|
|
||||||
"controller.animation.test": {
|
|
||||||
"states": {
|
|
||||||
"default": {
|
|
||||||
"on_entry": [
|
|
||||||
"event1", // note that these events can be any event, slash command, Molang, or entity event
|
|
||||||
"event2",
|
|
||||||
"event3"
|
|
||||||
],
|
|
||||||
"on_exit": [
|
|
||||||
"event1",
|
|
||||||
"event2"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Animation Events">Animation Events</p></h1>
|
|
||||||
|
|
||||||
</br>Animations can have a timeline dedicated to events. The "timeline" section contains the event timeline list. Below there are various examples where particular times can trigger a single event, or an array of events:</br><h2></h2>
|
|
||||||
<br / ><textarea readonly="true" cols="68" rows="32">
|
|
||||||
|
|
||||||
{
|
|
||||||
"format_version": "1.8.0",
|
|
||||||
"animations": {
|
|
||||||
"animation.test_events": {
|
|
||||||
"timeline": {
|
|
||||||
"2.0": "@s minecraft:entity_born",
|
|
||||||
"4.0": [ "@s minecraft:ageable_grow_up" ]
|
|
||||||
},
|
|
||||||
"animation_length": 5.0
|
|
||||||
},
|
|
||||||
"animation.test_molang": {
|
|
||||||
"timeline": {
|
|
||||||
"0.0": "variable.pop_smoke = 1; variable.pop_bubbles = 0;",
|
|
||||||
"3.0": [
|
|
||||||
"variable.pop_smoke = 0;",
|
|
||||||
"variable.pop_bubbles = 1;"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"animation.test_commands": {
|
|
||||||
"timeline": {
|
|
||||||
"1.0": "/tell @a timeline command1",
|
|
||||||
"2.0": [
|
|
||||||
"/tell @a timeline command 2.1",
|
|
||||||
"/tell @a timeline command 2.2"
|
|
||||||
],
|
|
||||||
"3.0": [ "/tell @a command 3" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Animation Notes">Animation Notes</p></h1>
|
|
||||||
|
|
||||||
</br>Entity events occur in animations, which normally occur on the client (via resource packs), but can also occur on the server (via behavior packs). As the server side of the game has no visual aspects to it, obviously no bone-based animations can occur. However, a traditional animation is basically a timeline of events, with the events being bone positions for an animated visual rig that moves the entity's visual shape around. The mechanisms for the Bedrock animation system are state machines (Animation Controllers), and timelines (Animations). These concepts apply directly to the triggering of events, thus the animation system can execute on the server (minus the visual aspects), with the intent of driving entity events. </br></br>To use entity events on the server (in a behavior pack), add animation controllers and animations to a behavior pack just as you would to a resource pack. Add animation and animation controllers to an "animations" section in the description field of an entity. These animations and animation controllers will run on the server just as if they were on the client in a resource pack. Add the "scripts" section with an "animate" subsection to specify which animations/animation-controllers to have run.</br></br>Client side (resource pack) events do not require special setup as the client side entities usually already have animations and animation controllers in place. Just add your events where you need them in animations or animation controllers.</br><h2></h2>
|
|
||||||
<br / ><textarea readonly="true" cols="106" rows="30">
|
|
||||||
|
|
||||||
{
|
|
||||||
// Example of the schema for a server-side entity, modified to run animations and animation controllers
|
|
||||||
"format_version": "1.8.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:cat",
|
|
||||||
...
|
|
||||||
"animations": {
|
|
||||||
"anim1": "animation.anim1",
|
|
||||||
"anim2": "animation.anim2",
|
|
||||||
"anim_controller1": "controller.animation.test1",
|
|
||||||
"anim_controller2": "controller.animation.test2"
|
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
// note that only these animations and animation controllers will automatically run:
|
|
||||||
"animate": [
|
|
||||||
"anim1",
|
|
||||||
"anim_controller1",
|
|
||||||
...
|
|
||||||
]
|
|
||||||
}
|
|
||||||
...
|
|
||||||
},
|
|
||||||
...
|
|
||||||
},
|
|
||||||
...
|
|
||||||
}
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Events">Events</p></h1>
|
|
||||||
|
|
||||||
</br>Events consist of three categories, all represented by a string:</br>- Entity events</br>- Slash Commands</br>- Molang Expressions</br></br>In detail:</br></br>Entity Events: Server side (behavior packs) only. Currently, we only support entity events to self, and these take the form "@s event". These are events declared in the events section of the entity definition file. For example, in the cat.json, "minecraft:ageable_grow_up" event causes the kitten to grow up. This would take the form of "@s minecraft:ageable_grow_up"</br></br>Slash commands: Server side (behavior packs) only. Any slash command can be invoked, such as "/particle minecraft:example_smoke_puff ~ ~ ~". The assumed entity for the slash command is the invoking entity, so this particular slash command will spawn a smoke puff effect at the entity's location.</br></br>Molang Expressions: This executes a Molang expression. The primary usage is to set Molang variables that can be used later. For example, a state transition might be looking at a particluar Molang variable, and this expression could change that variable. A particle effect on the entity might change color due to Molang variables that the effect uses for color tints. An animation to move an arm might use a Molang variable that was set by an animation event.</br><h2></h2>
|
|
||||||
<br / ><textarea readonly="true" cols="95" rows="12">
|
|
||||||
|
|
||||||
// entity event (behavior packs only), put the particular event name after the @s
|
|
||||||
"@s minecraft:entity_event"
|
|
||||||
|
|
||||||
// slash command (behavior packs only), can be any server-side slash command
|
|
||||||
// is invoked from the entity, so a teleport, for example, will teleport the entity by default
|
|
||||||
"/tell @a this is a message"
|
|
||||||
|
|
||||||
// Molang Expressions, executes a Molang expression on the entity
|
|
||||||
"variable.something_to_set = 3;"
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="General Notes">General Notes</p></h1>
|
|
||||||
|
|
||||||
</br>This document contains details for driving various events via entity .json data. Entity events can go in both behavior and resource packs. Behavior packs use the same animations and animation controllers setup that are used in resource packs, albeit with a different method in the entity .json itself to activate the animations.</br></br>Entity events are a way to drive gameplay and entity state changes in the Bedrock engine. These events can typically include slash commands (behavior packs only), entity events (e.g. become an adult), and Molang expressions (e.g. set the Molang variable "variable.foo" to 3 on a particular entity). Animations and Animation controllers provide a method for driving state machines and timelines for an entity. For example, a particular animation controller could be in a particular state, and running a particular animation, and we want events triggered when entering/exiting that state. Alternately, an "animation" could be running, and we wish to fire off events during that animation. The entity event timeline mechanic makes this possible.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -1,21 +0,0 @@
|
|||||||
<html><head><title>DOCUMENTATION</title></head><body><h1>DOCUMENTATION</br>Version: 1.18.1.2
|
|
||||||
<ol>
|
|
||||||
<li><a href="Addons.html">Addons</a>
|
|
||||||
<li><a href="Animations.html">Animations</a>
|
|
||||||
<li><a href="Biomes.html">Biomes</a>
|
|
||||||
<li><a href="Blocks.html">Blocks</a>
|
|
||||||
<li><a href="Entities.html">Entities</a>
|
|
||||||
<li><a href="Entity Events.html">Entity Events</a>
|
|
||||||
<li><a href="Features.html">Features</a>
|
|
||||||
<li><a href="Fogs.html">Fogs</a>
|
|
||||||
<li><a href="Item.html">Item</a>
|
|
||||||
<li><a href="Molang.html">Molang</a>
|
|
||||||
<li><a href="Particles.html">Particles</a>
|
|
||||||
<li><a href="Recipes.html">Recipes</a>
|
|
||||||
<li><a href="Schemas.html">Schemas</a>
|
|
||||||
<li><a href="Scripting.html">Scripting</a>
|
|
||||||
<li><a href="Texture Sets.html">Texture Sets</a>
|
|
||||||
<li><a href="UI.html">UI</a>
|
|
||||||
<li><a href="Volumes.html">Volumes</a>
|
|
||||||
</ol>
|
|
||||||
</body></html>
|
|
||||||
@@ -1,409 +0,0 @@
|
|||||||
<h1>ITEM DOCUMENTATION </br>Version: 1.18.1.2</h1>
|
|
||||||
<h2><p id="Index">Index</p></h2>
|
|
||||||
<table border="1">
|
|
||||||
<tr> <th><a href="#Items">Items</a></th> </tr>
|
|
||||||
<tr> <td> <a href="#Item Components"> Item Components</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Item Definition Properties"> Item Definition Properties</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Item Description Properties"> Item Description Properties</a> </tr> </td>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a>
|
|
||||||
<h1><p id="Items">Items</p></h1>
|
|
||||||
|
|
||||||
To define an item, the item definition must be defined in the behavior pack in a JSON file.</br>All attributes, including item names, must be defined using item components.</br><h1><p id="Item Components">Item Components</p></h1>
|
|
||||||
|
|
||||||
Below are the various components for item functionality.</br><h2></h2>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:3;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:3;">Name</th> <th style="border-style:solid; border-width:3;">Type</th> <th style="border-style:solid; border-width:3;">Default Value</th> <th style="border-style:solid; border-width:3;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:armor</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">The armor item component determines the amount of protection you have in your armor item.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="protection">protection</p></h3>
|
|
||||||
|
|
||||||
How much protection does the armor item have.</br>Minimum value: 0</br>Type: integer</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="texture_type">texture_type</p></h3>
|
|
||||||
|
|
||||||
Texture Type to apply for the armor. Note that Horse armor is restricted to leather, iron, gold, or diamond.</br>Accepted values: "gold", "none", "leather", "chain", "iron", "diamond", "elytra", "turtle", "netherite"</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:block_placer</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Planter item component. planter items are items that can be planted.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="block">block</p></h3>
|
|
||||||
|
|
||||||
block: Set the placement block name for the planter item.</br>Type: block</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="use_on">use_on</p></h3>
|
|
||||||
|
|
||||||
List of block descriptors that contain blocks that this item can be used on. If left empty, all blocks will be allowed.</br>Type: array of use_on</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:cooldown</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Cool down time for a component. After you use an item it becomes unusable for the duration specified by the 'cool down time' setting in this component.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="category">category</p></h3>
|
|
||||||
|
|
||||||
The type of cool down for this item.</br>Type: category</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="duration">duration</p></h3>
|
|
||||||
|
|
||||||
The duration of time this item will spend cooling down before becoming usable again.</br>Type: float</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:digger</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Digger item. Component put on items that dig.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="destroy_speeds">destroy_speeds</p></h3>
|
|
||||||
|
|
||||||
Destroy speed per block.</br>Type: array of destroy_speeds</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="on_dig">on_dig</p></h3>
|
|
||||||
|
|
||||||
Trigger for when you dig a block that isn't listed in destroy_speeds</br>Type: on_dig</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="use_efficiency">use_efficiency</p></h3>
|
|
||||||
|
|
||||||
Use efficiency? Default is set to false.</br>Type: boolean</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:display_name</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Display Name item component. Display Names set the name to display when an item is in use or hovered over.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="value">value</p></h3>
|
|
||||||
|
|
||||||
The display name for an item.</br>Type: value</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:durability</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">A property that determines when an item will break from use. The durability of an item is potentially depleted upon use based on the damage chance.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="damage_chance">damage_chance</p></h3>
|
|
||||||
|
|
||||||
Damage chance is the chance of this item losing durability. Could be an int or an int range with min and max value.</br>Type: damage_chance</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="max_durability">max_durability</p></h3>
|
|
||||||
|
|
||||||
Max durability is the amount of damage that this item can take before breaking.</br>Type: integer</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:dye_powder</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Dye powder, there are 16 kinds of dye.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="color">color</p></h3>
|
|
||||||
|
|
||||||
Defines what color the dye is.</br>Accepted values: "black", "red", "green", "brown", "blue", "purple", "cyan", "silver", "gray", "pink", "lime", "yellow", "lightblue", "magenta", "orange", "white"</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:entity_placer</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Entity placer item component. You can specifiy allowed blocks that the item is restricted to.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="dispense_on">dispense_on</p></h3>
|
|
||||||
|
|
||||||
List of block descriptors that contain blocks that this item can be dispensed on. If left empty, all blocks will be allowed.</br>Type: array of dispense_on</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="entity">entity</p></h3>
|
|
||||||
|
|
||||||
The entity to be placed in the world.</br>Type: entity</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="use_on">use_on</p></h3>
|
|
||||||
|
|
||||||
List of block descriptors that contain blocks that this item can be used on. If left empty, all blocks will be allowed.</br>Type: array of use_on</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:food</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">When an item has a food component, it becomes edible to the player.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="can_always_eat">can_always_eat</p></h3>
|
|
||||||
|
|
||||||
If true you can always eat this item (even when not hungry), defaults to false.</br>Type: boolean</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="nutrition">nutrition</p></h3>
|
|
||||||
|
|
||||||
How much nutrition does this food item give the player when eaten.</br>Type: integer</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="on_consume">on_consume</p></h3>
|
|
||||||
|
|
||||||
</br>Type: on_consume</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="saturation_modifier">saturation_modifier</p></h3>
|
|
||||||
|
|
||||||
Saturation Modifier is used in this formula: (nutrition * saturation_modifier * 2) when appling the saturation buff. Which happens when you eat the item.</br>Type: saturation_modifier</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="using_converts_to">using_converts_to</p></h3>
|
|
||||||
|
|
||||||
When used, convert the *this* item to the one specified by 'using_converts_to'.</br>Type: using_converts_to</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:fuel</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Fuel component. Allows this item to be used as fuel in a furnace to 'cook' other items.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="duration">duration</p></h3>
|
|
||||||
|
|
||||||
How long in seconds will this fuel cook items for.</br>Type: float</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:icon</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">The icon item component determines the icon to represent the item.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="frame">frame</p></h3>
|
|
||||||
|
|
||||||
An index or MoLang expression for which frame of the icon to display. Default resolves to 0.</br>Type: frame</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="legacy_id">legacy_id</p></h3>
|
|
||||||
|
|
||||||
Legacy texture string id for older item icons. Legacy ID list can be found here under 'Namespaced ID': https://minecraft.fandom.com/wiki/Bedrock_Edition_data_values</br>Type: string</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="texture">texture</p></h3>
|
|
||||||
|
|
||||||
The key for the object contain the expected textures, from file 'resource_pack/textures/item_texture.json'.</br>Type: string</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:knockback_resistance</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Knockback Resistance Item. Component put on items that provide knockback resistance.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="protection">protection</p></h3>
|
|
||||||
|
|
||||||
Amount of knockback resistance provided with the total maximum protection being 1.0</br>Type: float</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:on_use</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">The on_use item component allows you to receive an event when the item is used.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="on_use">on_use</p></h3>
|
|
||||||
|
|
||||||
Event trigger for when the item is used.</br>Type: on_use</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:on_use_on</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">The on_use_on item component allows you to receive an event when the item is used on a block in the world.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="on_use_on">on_use_on</p></h3>
|
|
||||||
|
|
||||||
Event trigger for when the item is used.</br>Type: on_use_on</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:projectile</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Projectile item component. projectile items shoot out, like an arrow.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="minimum_critical_power">minimum_critical_power</p></h3>
|
|
||||||
|
|
||||||
How long you must charge a projectile for it to critically hit.</br>Type: float</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="projectile_entity">projectile_entity</p></h3>
|
|
||||||
|
|
||||||
The entity to be fired as a projectile.</br>Type: projectile_entity</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:render_offsets</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Render offsets component: optional values can be given to offset the way the item is rendered.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="main_hand">main_hand</p></h3>
|
|
||||||
|
|
||||||
Main hand transform data.</br>Type: main_hand</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="off_hand">off_hand</p></h3>
|
|
||||||
|
|
||||||
Offhand hand transform data.</br>Type: off_hand</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:repairable</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Repairable item component: how much damage can this item repair, what items can repair it.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="on_repaired">on_repaired</p></h3>
|
|
||||||
|
|
||||||
Event that is called when this item has been repaired.</br>Type: on_repaired</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="repair_items">repair_items</p></h3>
|
|
||||||
|
|
||||||
Repair item entries.</br>Type: array of repair_items</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:shooter</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Shooter Item Component.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="ammunition">ammunition</p></h3>
|
|
||||||
|
|
||||||
Ammunition.</br>Type: array of ammunition</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="charge_on_draw">charge_on_draw</p></h3>
|
|
||||||
|
|
||||||
Charge on draw? Default is set to false.</br>Type: boolean</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="launch_power_scale">launch_power_scale</p></h3>
|
|
||||||
|
|
||||||
Launch power scale. Default is set to 1.0.</br>Type: float</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="max_draw_duration">max_draw_duration</p></h3>
|
|
||||||
|
|
||||||
Draw Duration. Default is set to 0.</br>Type: max_draw_duration</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="max_launch_power">max_launch_power</p></h3>
|
|
||||||
|
|
||||||
Launch power. Default is set to 1.0.</br>Type: float</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="scale_power_by_draw_duration">scale_power_by_draw_duration</p></h3>
|
|
||||||
|
|
||||||
Scale power by draw duration? Default is set to false.</br>Type: boolean</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:throwable</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Throwable item component. Throwable items, such as a snowball.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="do_swing_animation">do_swing_animation</p></h3>
|
|
||||||
|
|
||||||
Whether the item should use the swing animation when thrown. Default is set to false.</br>Type: boolean</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="launch_power_scale">launch_power_scale</p></h3>
|
|
||||||
|
|
||||||
The scale at which the power of the throw increases. Default is set to 1.0.</br>Type: float</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="max_draw_duration">max_draw_duration</p></h3>
|
|
||||||
|
|
||||||
The maximum duration to draw a throwable item. Default is set to 0.0.</br>Type: float</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="max_launch_power">max_launch_power</p></h3>
|
|
||||||
|
|
||||||
The maximum power to launch the throwable item. Default is set to 1.0.</br>Type: float</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="min_draw_duration">min_draw_duration</p></h3>
|
|
||||||
|
|
||||||
The minimum duration to draw a throwable item. Default is set to 0.0.</br>Type: float</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="scale_power_by_draw_duration">scale_power_by_draw_duration</p></h3>
|
|
||||||
|
|
||||||
Whether or not the power of the throw increases with duration charged. Default is set to false.</br>Type: boolean</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:weapon</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Weapon Item Component. Added to every weapon item such as axe, sword, trident, bow, crossbow.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="on_hit_block">on_hit_block</p></h3>
|
|
||||||
|
|
||||||
Trigger for letting you know when this item is used to hit a block</br>Type: on_hit_block</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="on_hurt_entity">on_hurt_entity</p></h3>
|
|
||||||
|
|
||||||
Trigger for letting you know when this item is used to hurt another mob</br>Type: on_hurt_entity</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3><p id="on_not_hurt_entity">on_not_hurt_entity</p></h3>
|
|
||||||
|
|
||||||
Trigger for letting you know when this item hit another actor, but didn't do damage</br>Type: on_not_hurt_entity</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:wearable</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">JSON Object</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Wearable item component.</br>Experimental toggles required: Holiday Creator Features</br><h3><p id="slot">slot</p></h3>
|
|
||||||
|
|
||||||
equipment_slot: slot.weapon.mainhand, slot.weapon.offhand, slot.armor.head, slot.armor.chest, slot.armor.legs, slot.armor.feet, slot.hotbar, slot.inventory, slot.enderchest, slot.saddle, slot.armor, slot.chest</br>Accepted values: "slot.armor.legs", "none", "slot.weapon.mainhand", "slot.weapon.offhand", "slot.armor.head", "slot.armor.chest", "slot.armor.feet", "slot.hotbar", "slot.inventory", "slot.enderchest", "slot.saddle", "slot.armor", "slot.chest"</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Item Definition Properties">Item Definition Properties</p></h1>
|
|
||||||
|
|
||||||
The properties are part of the Item Definition. This helps the system determine how to parse and initialize this item.</br><h2></h2>
|
|
||||||
|
|
||||||
<h2><p id="format_version">format_version</p></h2>
|
|
||||||
|
|
||||||
Specifies the version of the game this entity was made in. If the version is lower than the current version, any changes made to the entity in the vanilla version will be applied to it.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h2>Code Example</h2>
|
|
||||||
Example<br / ><textarea readonly="true" cols="42" rows="22">
|
|
||||||
{
|
|
||||||
"format_version": "1.16.1",
|
|
||||||
"minecraft:item": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:blaze_rod"
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:fuel": {
|
|
||||||
"duration": 120.0
|
|
||||||
},
|
|
||||||
"minecraft:max_stack_size": 64,
|
|
||||||
"minecraft:icon": {
|
|
||||||
"texture": "blaze_rod"
|
|
||||||
},
|
|
||||||
"minecraft:hand_equipped": true,
|
|
||||||
"minecraft:display_name": {
|
|
||||||
"value": "Blaze Rod"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h1><p id="Item Description Properties">Item Description Properties</p></h1>
|
|
||||||
|
|
||||||
<h2></h2>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:3;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:3;">Name</th> <th style="border-style:solid; border-width:3;">Type</th> <th style="border-style:solid; border-width:3;">Default Value</th> <th style="border-style:solid; border-width:3;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">category</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">The category for this item. Categories are used to control high level properties of how the item is integrated into the bedrock engine, such as whether it can be used in slash commands.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">identifier</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">The identifier for this item. The name must include a namespace and must not use the Minecraft namespace unless overriding a Vanilla item.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">is_experimental</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Boolean</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">false</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">If this item is experimental, it will only be registered if the world is marked as experimental.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,289 +0,0 @@
|
|||||||
<h1>RECIPES DOCUMENTATION </br>Version: 1.18.1.2</h1>
|
|
||||||
<h2><p id="Index">Index</p></h2>
|
|
||||||
<table border="1">
|
|
||||||
<tr> <th><a href="#Recipes">Recipes</a></th> </tr>
|
|
||||||
<tr> <td> <a href="#Furnace Recipe"> Furnace Recipe</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Potion Brewing Container Recipe"> Potion Brewing Container Recipe</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Potion Brewing Mix"> Potion Brewing Mix</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Shaped Recipe"> Shaped Recipe</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Shapeless Recipe"> Shapeless Recipe</a> </tr> </td>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a>
|
|
||||||
<h1><p id="Recipes">Recipes</p></h1>
|
|
||||||
|
|
||||||
Recipes are setup in Json files under the behavior_packs /'name of pack'/ recipes directory.</br>Recipe JSON files have different structures dependent on their type.</br>There are 3 types of recipes, Furnace, Shaped and Shapeless.</br><h1><p id="Furnace Recipe">Furnace Recipe</p></h1>
|
|
||||||
|
|
||||||
Represents a furnace recipe for a furnace.'Input' items will burn and transform into items specified in 'output'..</br><h2></h2>
|
|
||||||
|
|
||||||
<h2><p id="Parameters">Parameters</p></h2>
|
|
||||||
|
|
||||||
<h3></h3>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">input</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">item names</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Items used as input for the furnace recipe.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">output</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">item names</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Items used as output for the furnace recipe.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h2>Furnace Recipe Example:</h2>
|
|
||||||
<br / ><textarea readonly="true" cols="60" rows="16">
|
|
||||||
{
|
|
||||||
"format_version": "1.12",
|
|
||||||
"minecraft:recipe_furnace": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:furnace_beef"
|
|
||||||
},
|
|
||||||
"tags": ["furnace", "smoker", "campfire", "soul_campfire"],
|
|
||||||
"input": {
|
|
||||||
"item": "minecraft:beef",
|
|
||||||
"data": 0,
|
|
||||||
"count": 4
|
|
||||||
},
|
|
||||||
"output ": "minecraft:cooked_beef"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h1><p id="Potion Brewing Container Recipe">Potion Brewing Container Recipe</p></h1>
|
|
||||||
|
|
||||||
Represents a Potion Brewing Container Recipe..</br><h2></h2>
|
|
||||||
|
|
||||||
<h2><p id="Parameters">Parameters</p></h2>
|
|
||||||
|
|
||||||
<h3></h3>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">input</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">potion</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">input potion used in the brewing container recipe.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">output</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">potion</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">output potion from the brewing container recipe.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">reagent</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">item</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">item used in the brewing container recipe with the input potion.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">tags</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">array of strings</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Item used in a Brewing Container Recipe.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h2>Potion Brewing Container Recipe Example:</h2>
|
|
||||||
<br / ><textarea readonly="true" cols="48" rows="16">
|
|
||||||
{
|
|
||||||
"format_version": "1.12",
|
|
||||||
"minecraft:recipe_brewing_container": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:brew_potion_sulphur"
|
|
||||||
},
|
|
||||||
|
|
||||||
"tags": [ "brewing_stand" ],
|
|
||||||
|
|
||||||
"input": "minecraft:potion",
|
|
||||||
"reagent": "minecraft:gunpowder",
|
|
||||||
"output": "minecraft:splash_potion",
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h1><p id="Potion Brewing Mix">Potion Brewing Mix</p></h1>
|
|
||||||
|
|
||||||
Represents a Potion Brewing Mix..</br><h2></h2>
|
|
||||||
|
|
||||||
<h2><p id="Parameters">Parameters</p></h2>
|
|
||||||
|
|
||||||
<h3></h3>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">input</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">potion</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">input potion used on the brewing stand.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">output</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">potion</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">output potion from mixing the input potion with the reagent on the brewing stand.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">reagent</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">item</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">item used to mix with the input potion.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">tags</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">array of strings</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Item used to make a brewing mix.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h2>Potion Brewing Mix Example:</h2>
|
|
||||||
<br / ><textarea readonly="true" cols="54" rows="16">
|
|
||||||
{
|
|
||||||
"format_version": "1.12",
|
|
||||||
"minecraft:recipe_brewing_mix": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:brew_awkward_blaze_powder"
|
|
||||||
},
|
|
||||||
|
|
||||||
"tags": [ "brewing_stand" ],
|
|
||||||
|
|
||||||
"input": "minecraft:potion_type:awkward",
|
|
||||||
"reagent": "minecraft:blaze_powder",
|
|
||||||
"output": "minecraft:potion_type:strength",
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h1><p id="Shaped Recipe">Shaped Recipe</p></h1>
|
|
||||||
|
|
||||||
Represents a shaped crafting recipe for a crafting table.</br>The key used in the pattern may be any single character except the 'space' character, which is reserved for empty slots in a recipe..</br><h2></h2>
|
|
||||||
|
|
||||||
<h2><p id="Parameters">Parameters</p></h2>
|
|
||||||
|
|
||||||
<h3></h3>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">key</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">array of key and item pairs</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">patten key character mapped to item names.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">pattern</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">array of strings</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">characters that represent a pattern to be defined by keys.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">priority</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">integer</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Item used as output for the furnace recipe.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">result</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">array of item names</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">when input items match the pattern then these items are the result.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">tags</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">array of strings</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Item used as input for the furnace recipe.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h2>Shaped Recipe Example:</h2>
|
|
||||||
<br / ><textarea readonly="true" cols="40" rows="27">
|
|
||||||
{
|
|
||||||
"format_version": "1.12",
|
|
||||||
"minecraft:recipe_shaped": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:acacia_boat"
|
|
||||||
},
|
|
||||||
"tags": [ "crafting_table" ],
|
|
||||||
"pattern": [
|
|
||||||
"#P#",
|
|
||||||
"###"
|
|
||||||
],
|
|
||||||
"key": {
|
|
||||||
"P": {
|
|
||||||
"item": "minecraft:wooden_shovel"
|
|
||||||
},
|
|
||||||
"#": {
|
|
||||||
"item": "minecraft:planks",
|
|
||||||
"data": 4
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"result": {
|
|
||||||
"item": "minecraft:boat",
|
|
||||||
"data": 4
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h1><p id="Shapeless Recipe">Shapeless Recipe</p></h1>
|
|
||||||
|
|
||||||
Represents a shapeless crafting recipe..</br><h2></h2>
|
|
||||||
|
|
||||||
<h2><p id="Parameters">Parameters</p></h2>
|
|
||||||
|
|
||||||
<h3></h3>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">ingredients</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">array of item names</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">items used as input (without a shape) for the recipe.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">priority</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">integer</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Item used as output for the furnace recipe.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">result</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">array of item names</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">these items are the result.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">tags</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">array of strings</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Item used as input for the furnace recipe.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h2>Shapeless Recipe Example:</h2>
|
|
||||||
<br / ><textarea readonly="true" cols="52" rows="19">
|
|
||||||
{
|
|
||||||
"format_version": "1.12",
|
|
||||||
"minecraft:recipe_shapeless": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:firecharge_coal_sulphur"
|
|
||||||
},
|
|
||||||
"priority": 0,
|
|
||||||
"ingredients": {
|
|
||||||
"item": "minecraft:fireball",
|
|
||||||
"data": 0,
|
|
||||||
"count": 4
|
|
||||||
},
|
|
||||||
"result": {
|
|
||||||
"item": "minecraft:blaze_powder",
|
|
||||||
"data": 4
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -1,104 +0,0 @@
|
|||||||
<h1>TEXTURE SETS DOCUMENTATION </br>Version: 1.18.1.2</h1>
|
|
||||||
<h2><p id="Index">Index</p></h2>
|
|
||||||
<table border="1">
|
|
||||||
<tr> <th><a href="#Texture Sets">Texture Sets</a></th> </tr>
|
|
||||||
<tr> <td> <a href="#Texture Set Json Schema"> Texture Set Json Schema</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Layers"> Layers</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Specifying uniform values"> Specifying uniform values</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Examples of *.texture_set.json files"> Examples of *.texture_set.json files</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Invalid *.texture_set.json"> Invalid *.texture_set.json</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Resource Stack Behaviour"> Resource Stack Behaviour</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Referencing Texture Resources"> Referencing Texture Resources</a> </tr> </td>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a>
|
|
||||||
<h1><p id="Texture Sets">Texture Sets</p></h1>
|
|
||||||
|
|
||||||
Minecraft supports a Physically Based Rendering (PBR) color pipeline (e.g. used for Ray Tracing). This uses more texture data than simply 'color' to enable richer, more realistic visuals. With the PBR approach, you can have layers for different specular reflections, emissivity, normal maps, etc. which goes beyond the Classic color pipeline for Vanilla Minecraft. Texture Sets have been added as the feature for defining multiple PBR layers for a texture resource. Texture sets are data driven from json files.</br><h1><p id="Texture Set Json Schema">Texture Set Json Schema</p></h1>
|
|
||||||
|
|
||||||
<h2>Texture Set Json Schema</h2>
|
|
||||||
|
|
||||||
```</br>--------</br>{</br> version "format_version"</br> object "minecraft:texture_set"</br> {</br> color "color" : opt // Fill RGBA channels of a textureset layer with the specified values in an array or hex string</br> string "color" : opt // The texture name of a textureset layer</br> string "normal" : opt // The texture name of a textureset layer</br> string "heightmap" : opt // The texture name of a textureset layer</br> color "metalness_emissive_roughness" : opt // Fill RGB channels of a textureset layer with the specified values in an array or hex string</br> string "metalness_emissive_roughness" : opt // The texture name of a textureset layer</br> }</br>}</br></br>----------</br>```</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Layers">Layers</p></h1>
|
|
||||||
|
|
||||||
A texture_set.json file may specify several layers.</br>Layers are references to texture image resources. they can also be defined in .json as values for uniform solid values as an alternative to referencing texture images in a pack.</br></br><h2></h2>
|
|
||||||
|
|
||||||
<h2><p id="Color">Color</p></h2>
|
|
||||||
|
|
||||||
- This is an RGB 3-channel image (defaults to uniform alpha of 1.0), or an RGBA 4-channel image, or a 4 value array for a uniform color with alpha.</br>- This is the only required layer.</br>- It is the only layer used by the Classic pipeline.</br>- Typically there is lighting baked in the color image.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h2><p id="Normal">Normal</p></h2>
|
|
||||||
|
|
||||||
- 3-channel normal map image (or 4-channel where the 4th channel is ignored).</br>- Mutually exclusive with the `heightmap` layer.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h2><p id="Heightmap">Heightmap</p></h2>
|
|
||||||
|
|
||||||
- 1-channel layer image or a single value in json for a uniform heightmap.</br>- Mutually exclusive with the `normal` layer.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h2><p id="Metalness_emissive_roughness">Metalness_emissive_roughness</p></h2>
|
|
||||||
|
|
||||||
- 3-channel image (or 4-channel where the 4th channel is ignored) or a 3 value array for a uniform MER.</br>- RGB images map Red to Metalness, Green to Emissive, and Blue to Roughness.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h1><p id="Specifying uniform values">Specifying uniform values</p></h1>
|
|
||||||
|
|
||||||
Instead of referencing a texture image for a Texture Set layer, values can instead be specified in the *texture_set.json file, which is effectively the equivalent to referencing a texture image filled uniformly with that value or values for the respective channels.</br></br>The values in the json can be specified in any of the following formats:</br>- 0 to 255 numeric range, or as a vector of such integers for a multi-channel layer.</br>- Hexadecimal RGB or ARGB for 3 and 4 channels respectively, also as 2 hex digits for a single channel layer.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Examples of *.texture_set.json files">Examples of *.texture_set.json files</p></h1>
|
|
||||||
|
|
||||||
<h2></h2>
|
|
||||||
All the layer values can be mixed and match with references to image textures, hexadecimal and numerical values.
|
|
||||||
<br / ><textarea readonly="true" cols="56" rows="11">
|
|
||||||
|
|
||||||
{
|
|
||||||
"format_version": "1.16.100",
|
|
||||||
"minecraft:texture_set": {
|
|
||||||
"color": [ 180, 140, 190, 255 ],
|
|
||||||
"metalness_emissive_roughness": "#FBA34C",
|
|
||||||
"normal": "grass_carried_normal"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
This example uses referenced images that exist in the same folder. It uses a normal and MER map.
|
|
||||||
<br / ><textarea readonly="true" cols="67" rows="11">
|
|
||||||
|
|
||||||
{
|
|
||||||
"format_version": "1.16.100",
|
|
||||||
"minecraft:texture_set": {
|
|
||||||
"color": "grass_carried",
|
|
||||||
"metalness_emissive_roughness": "grass_carried_mer",
|
|
||||||
"heightmap": "grass_carried_heightmap"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
You could also specify values of textures using numerical or hexadecimal values.
|
|
||||||
<br / ><textarea readonly="true" cols="63" rows="10">
|
|
||||||
|
|
||||||
{
|
|
||||||
"format_version": "1.16.100",
|
|
||||||
"minecraft:texture_set": {
|
|
||||||
"color": [ 180, 135, 190, 170 ],
|
|
||||||
"metalness_emissive_roughness": [ 130, 135, 140 ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Invalid *.texture_set.json">Invalid *.texture_set.json</p></h1>
|
|
||||||
|
|
||||||
If a Texture Set is invalid, we'll log a CONTENT_ERROR and the Texture Set will not be used.</br>A Texture Set is invalid if:</br>- Json data cannot be parsed, or doesn't meet the Texture Set schema.</br>- Color layer is not specified. Having a color layer in the .texture_set.json is required.</br>- Both heightmap and normal layers are defined.</br>- If a referenced texture does not exist in the same resource pack or the referenced texture cannot be parsed.</br>- Any layer is defined with an unexpected number of channels:</br> - For layers that are specified with referenced images: Color, MER, and Normal support 3 or 4 channel images; Heightmap support 1-channel images only.</br> - For layers that are specified with numerical or hexadecimal values: Color support 4-channel values; MER support 3-channel values;</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Resource Stack Behaviour">Resource Stack Behaviour</p></h1>
|
|
||||||
|
|
||||||
- Texture Set definitions can only reference images that exist in the same resource pack as the definition.</br>- Texture images in higher priority resource packs do not override a Texture Set's reference to a texture in its own pack.</br>- In the resource pack stack, Texture Set definitions for the same texture resource don't get merged. The higher priority pack's Texture Set definition will override the lower priority one.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Referencing Texture Resources">Referencing Texture Resources</p></h1>
|
|
||||||
|
|
||||||
The priority of file extensions, in case you have duplicate image references, is: .tga > .png > .jpg > .jpeg. For example: if grass.png and grass.tga both exist in the folder, grass.tga will be chosen. This also applies to other data driven files, like actor json referencing a texture resource.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
@@ -1,120 +0,0 @@
|
|||||||
<h1>UI DOCUMENTATION </br>Version: 1.18.1.2</h1>
|
|
||||||
<h2><p id="Index">Index</p></h2>
|
|
||||||
<table border="1">
|
|
||||||
<tr> <th><a href="#Scripting System">Scripting System</a></th> </tr>
|
|
||||||
<tr> <td> <a href="#Engine Bindings"> Engine Bindings</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Getting The Script Engine"> Getting The Script Engine</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Script Bindings"> Script Bindings</a> </tr> </td>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a>
|
|
||||||
<h1><p id="Scripting System">Scripting System</p></h1>
|
|
||||||
|
|
||||||
The custom UI for Minecraft is based on HTML 5.</br>You can write JavaScript within the HTML file to listen and respond to events from the UI Engine. These events can be triggered by the UI Engine itself or you can trigger them from your scripts.</br>In order to use custom UI, the resource pack containing the custom UI needs to have the custom UI capabilities enabled. To do this, simply add "experimental_custom_ui" to the capabilities array in the pack's manifest. You can check the Turn-Based RPG demo for an example of how to do this.</br><h1><p id="Engine Bindings">Engine Bindings</p></h1>
|
|
||||||
|
|
||||||
<h2></h2>
|
|
||||||
|
|
||||||
<h2><p id="on(EventIdentifier, Callback)">on(EventIdentifier, Callback)</p></h2>
|
|
||||||
|
|
||||||
This is used to get events from the UI Engine. These events can be originally sent from client scripts using `send_ui_event`, or created by the game and passed along by the UI Engine. The data sent from scripts to this function must be a string.</br><h3></h3>
|
|
||||||
|
|
||||||
<h3><p id="Parameters">Parameters</p></h3>
|
|
||||||
|
|
||||||
<h4></h4>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:1;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:1;">Name</th> <th style="border-style:solid; border-width:1;">Type</th> <th style="border-style:solid; border-width:1;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">Callback</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">JavaScript Object</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">The callback that will be called when the event happens</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">EventIdentifier</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">Specifies the event that function will react to</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3>Example of how to listen for events from a client script:</h3>
|
|
||||||
<br / ><textarea readonly="true" cols="62" rows="3">
|
|
||||||
engine.on("exampleEventIdentifier", function (exampleData) {
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h2><p id="trigger(EventIdentifier, Arguments)">trigger(EventIdentifier, Arguments)</p></h2>
|
|
||||||
|
|
||||||
This is used to send events to the UI Engine.</br><h3></h3>
|
|
||||||
|
|
||||||
<h3><p id="Parameters">Parameters</p></h3>
|
|
||||||
|
|
||||||
<h4></h4>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:1;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:1;">Name</th> <th style="border-style:solid; border-width:1;">Type</th> <th style="border-style:solid; border-width:1;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">Arguments</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">JavaScript Object</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">The arguments passed to the callback</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">EventIdentifier</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">Specifies the event that function will react to</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3>Example of how to send an event to the UI engine:</h3>
|
|
||||||
<br / ><textarea readonly="true" cols="59" rows="2">
|
|
||||||
engine.trigger("exampleEventIdentifier", eventDataObject);
|
|
||||||
</textarea> </br>
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<h1><p id="Getting The Script Engine">Getting The Script Engine</p></h1>
|
|
||||||
|
|
||||||
In order to create a link between the UI Engine and the Script Engine you need to capture the instance of the Script Engine.</br>The engine.on() function needs to listen for the event "facet:updated:scripting" and you need to store the return value.</br>You will then need to request the script engine by triggering the "facet:request" event and passing it "scripting" in a vector.</br>The order of the calls is important. If you trigger the request before you registered the listener you won't be able to capture the callback.</br><h2>Example of how to capture the Script Engine:</h2>
|
|
||||||
<br / ><textarea readonly="true" cols="59" rows="6">
|
|
||||||
let scriptInterface = undefined;
|
|
||||||
engine.on("facet:updated:scripting", function(interface) {
|
|
||||||
scriptInterface = interface;
|
|
||||||
});
|
|
||||||
engine.trigger("facet:request", ["scripting"]);
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Script Bindings">Script Bindings</p></h1>
|
|
||||||
|
|
||||||
<h2></h2>
|
|
||||||
|
|
||||||
<h2><p id="triggerEvent(Data)">triggerEvent(Data)</p></h2>
|
|
||||||
|
|
||||||
This triggers the minecraft:ui_event on client scripts with the provided data.</br><h3></h3>
|
|
||||||
|
|
||||||
<h3><p id="Parameters">Parameters</p></h3>
|
|
||||||
|
|
||||||
<h4></h4>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:1;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:1;">Name</th> <th style="border-style:solid; border-width:1;">Type</th> <th style="border-style:solid; border-width:1;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">Data</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:1; padding:9px">This string will be sent to "minecraft:ui_event" event in client scripts</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h3>Example of how to send events to a client script:</h3>
|
|
||||||
<br / ><textarea readonly="true" cols="57" rows="2">
|
|
||||||
scriptInterface.triggerEvent("SendThisDataToTheScript");
|
|
||||||
</textarea> </br>
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
@@ -1,175 +0,0 @@
|
|||||||
<h1>VOLUMES DOCUMENTATION </br>Version: 1.18.1.2</h1>
|
|
||||||
<h2><p id="Index">Index</p></h2>
|
|
||||||
<table border="1">
|
|
||||||
<tr> <th><a href="#Volumes">Volumes</a></th> </tr>
|
|
||||||
<tr> <td> <a href="#Volume Components"> Volume Components</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Volume Definition Properties"> Volume Definition Properties</a> </tr> </td>
|
|
||||||
<tr> <td> <a href="#Volume Description Properties"> Volume Description Properties</a> </tr> </td>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a>
|
|
||||||
<h1><p id="Volumes">Volumes</p></h1>
|
|
||||||
|
|
||||||
<h1><p id="Volume Components">Volume Components</p></h1>
|
|
||||||
|
|
||||||
These are the various possible components for this entity</br><h2></h2>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:3;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:3;">Name</th> <th style="border-style:solid; border-width:3;">Type</th> <th style="border-style:solid; border-width:3;">Default Value</th> <th style="border-style:solid; border-width:3;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:bounds</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Component that defines a minimum and maximum block position for a bounding box and which world dimension the bounding box is in. Every volume must have a bounds component.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">dimension</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The name of the dimension the bounding box will exist in: one of 'overworld', 'nether' or 'the end'.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">max</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Vector [a, b, c]</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The maximum block position of the bounding box.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">min</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Vector [a, b, c]</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The minimum block position of the bounding box.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:fog</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Displays the given fog whenever a player enters the volume. Each volume can only have one fog attached.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">fog_identifier</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The identifier of a fog definition. Note that you will not receive any feedback if the definition does not exist.</br></td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">priority</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Integer</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">INT_MAX</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">The priority for this fog definition setting. Smaller numbers have higher priority. Fogs with equal priority will be combined together.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:on_actor_enter</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Component that defines what happens when an actor enters the volume. Can contain multiple json objects.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">on_enter</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Array</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Required array that contains all the triggers.</br><h5><p id="condition">condition</p></h5>
|
|
||||||
|
|
||||||
Molang expression to test against the actor. The given event will be triggered if the expression evaluates to true.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h5><p id="event">event</p></h5>
|
|
||||||
|
|
||||||
Name of the event to run.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h5><p id="target">target</p></h5>
|
|
||||||
|
|
||||||
One of "self" or "other". Self means the event is attached to the volume. Other means the event is attached to the actor.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">minecraft:on_actor_leave</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Component that defines what happens when an actor leaves the volume.</br><table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:2;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:2;">Name</th> <th style="border-style:solid; border-width:2;">Type</th> <th style="border-style:solid; border-width:2;">Default Value</th> <th style="border-style:solid; border-width:2;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">on_leave</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Array</td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px"></td>
|
|
||||||
<td style="border-style:solid; border-width:2; padding:8px">Required array that contains all the triggers.</br><h5><p id="condition">condition</p></h5>
|
|
||||||
|
|
||||||
Molang expression to test against the actor. The given event will be triggered if the expression evaluates to true.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h5><p id="event">event</p></h5>
|
|
||||||
|
|
||||||
Name of the event to run.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h5><p id="target">target</p></h5>
|
|
||||||
|
|
||||||
One of "self" or "other". Self means the event is attached to the volume. Other means the event is attached to the actor.</br><a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Volume Definition Properties">Volume Definition Properties</p></h1>
|
|
||||||
|
|
||||||
The properties of a minecraft:volume entity. Note that every volume must have a bounds component. All other components are optional.</br><h2></h2>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:3;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:3;">Name</th> <th style="border-style:solid; border-width:3;">Type</th> <th style="border-style:solid; border-width:3;">Default Value</th> <th style="border-style:solid; border-width:3;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">format_version</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">Specifies the version of the game this entity was made in. Minimum supported version is 1.17.0. Current supported version is 1.17.0.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<h2>Example</h2>
|
|
||||||
Example<br / ><textarea readonly="true" cols="58" rows="19">
|
|
||||||
{
|
|
||||||
"format_version": 1.17.0,
|
|
||||||
"minecraft:volume": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "your_custom_namespace:sample_volume"
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:bounds": {
|
|
||||||
"min": [-50, 0, -50],
|
|
||||||
"max": [50, 256, 50]
|
|
||||||
},
|
|
||||||
"minecraft:fog": {
|
|
||||||
"fog_identifier": "minecraft:fog_savanna",
|
|
||||||
"priority": 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</textarea> </br>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<h1><p id="Volume Description Properties">Volume Description Properties</p></h1>
|
|
||||||
|
|
||||||
The description contains a single 'identifier' string</br><h2></h2>
|
|
||||||
|
|
||||||
<table border="1" style="width:100%; border-style:solid; border-collapse:collapse; border-width:3;">
|
|
||||||
<tr> <th style="border-style:solid; border-width:3;">Name</th> <th style="border-style:solid; border-width:3;">Type</th> <th style="border-style:solid; border-width:3;">Default Value</th> <th style="border-style:solid; border-width:3;">Description</th> </tr>
|
|
||||||
<tr>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">identifier</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">String</td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px"></td>
|
|
||||||
<td style="border-style:solid; border-width:3; padding:7px">The unique identifier for this volume. It must be of the form 'namespace:name', where namespace cannot be 'minecraft'.</br></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<a href="#Index">Back to top</a><br><br>
|
|
||||||
|
|
||||||
<br><br>
|
|
||||||
|
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.8.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:area_effect_cloud",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": false,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:physics": {
|
|
||||||
"has_collision": false
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,54 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.210",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:armor_stand",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "armor_stand", "inanimate", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.5,
|
|
||||||
"height": 1.975
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 6,
|
|
||||||
"max": 6
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:knockback_resistance": {
|
|
||||||
"value": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/armor_stand.json"
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:persistent": {
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": false,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,171 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.13.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:arrow",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:hard_arrow": {
|
|
||||||
"minecraft:projectile": {
|
|
||||||
"on_hit": {
|
|
||||||
"impact_damage": {
|
|
||||||
"damage": [ 1, 5 ],
|
|
||||||
"knockback": true,
|
|
||||||
"semi_random_diff_damage": false,
|
|
||||||
"destroy_on_hit": true
|
|
||||||
},
|
|
||||||
"stick_in_ground": {
|
|
||||||
"shake_time" : 0.35
|
|
||||||
},
|
|
||||||
"arrow_effect": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hit_sound": "bow.hit",
|
|
||||||
"power": 1.6,
|
|
||||||
"gravity": 0.05,
|
|
||||||
"uncertainty_base": 16,
|
|
||||||
"uncertainty_multiplier": 4,
|
|
||||||
"anchor": 1,
|
|
||||||
"should_bounce": true,
|
|
||||||
"offset": [ 0, -0.1, 0 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:player_arrow": {
|
|
||||||
"minecraft:projectile": {
|
|
||||||
"on_hit": {
|
|
||||||
"impact_damage": {
|
|
||||||
"damage": 1,
|
|
||||||
"knockback": true,
|
|
||||||
"semi_random_diff_damage": true,
|
|
||||||
"destroy_on_hit": true,
|
|
||||||
"max_critical_damage": 10,
|
|
||||||
"min_critical_damage": 9,
|
|
||||||
"power_multiplier": 0.97
|
|
||||||
},
|
|
||||||
"stick_in_ground": {
|
|
||||||
"shake_time" : 0.35
|
|
||||||
},
|
|
||||||
"arrow_effect": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hit_sound": "bow.hit",
|
|
||||||
"power": 5.0,
|
|
||||||
"gravity": 0.05,
|
|
||||||
"uncertainty_base": 1,
|
|
||||||
"uncertainty_multiplier": 0,
|
|
||||||
"anchor": 1,
|
|
||||||
"should_bounce": true,
|
|
||||||
"offset": [ 0, -0.1, 0 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:pillager_arrow": {
|
|
||||||
"minecraft:projectile": {
|
|
||||||
"on_hit": {
|
|
||||||
"impact_damage": {
|
|
||||||
"damage": [ 3, 6 ],
|
|
||||||
"knockback": true,
|
|
||||||
"semi_random_diff_damage": false,
|
|
||||||
"destroy_on_hit": true
|
|
||||||
},
|
|
||||||
"stick_in_ground": {
|
|
||||||
"shake_time": 0.35
|
|
||||||
},
|
|
||||||
"arrow_effect": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hit_sound": "bow.hit",
|
|
||||||
"power": 1.6,
|
|
||||||
"gravity": 0.05,
|
|
||||||
"uncertainty_base": 16,
|
|
||||||
"uncertainty_multiplier": 4,
|
|
||||||
"anchor": 1,
|
|
||||||
"should_bounce": true,
|
|
||||||
"offset": [ 0, -0.1, 0 ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.25,
|
|
||||||
"height": 0.25
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:projectile": {
|
|
||||||
"on_hit": {
|
|
||||||
"impact_damage": {
|
|
||||||
"damage": [ 1, 4 ],
|
|
||||||
"knockback": true,
|
|
||||||
"semi_random_diff_damage": false,
|
|
||||||
"destroy_on_hit": true
|
|
||||||
},
|
|
||||||
"stick_in_ground": {
|
|
||||||
"shake_time" : 0.35
|
|
||||||
},
|
|
||||||
"arrow_effect": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hit_sound": "bow.hit",
|
|
||||||
"power": 1.6,
|
|
||||||
"gravity": 0.05,
|
|
||||||
"uncertainty_base": 16,
|
|
||||||
"uncertainty_multiplier": 4,
|
|
||||||
"anchor": 1,
|
|
||||||
"should_bounce": true,
|
|
||||||
"offset": [ 0, -0.1, 0 ]
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": false,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 80.0,
|
|
||||||
"max_dropped_ticks": 7,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"filters": {"test": "is_difficulty", "value": "hard"},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:hard_arrow" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {"test": "is_family", "subject": "other", "value": "player"},
|
|
||||||
"add": {
|
|
||||||
"component_groups" : [ "minecraft:player_arrow" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {"test": "is_family", "subject": "other", "value": "pillager"},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:pillager_arrow" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,447 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:axolotl",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"attack_cooldown": {
|
|
||||||
"minecraft:attack_cooldown": {
|
|
||||||
"attack_cooldown_time": 120.0,
|
|
||||||
"attack_cooldown_complete_event": {
|
|
||||||
"event": "attack_cooldown_complete_event",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"axolotl_lucy": {
|
|
||||||
"minecraft:variant": { "value": 0 }
|
|
||||||
},
|
|
||||||
"axolotl_cyan": {
|
|
||||||
"minecraft:variant": { "value": 1 }
|
|
||||||
},
|
|
||||||
"axolotl_gold": {
|
|
||||||
"minecraft:variant": { "value": 2 }
|
|
||||||
},
|
|
||||||
"axolotl_wild": {
|
|
||||||
"minecraft:variant": { "value": 3 }
|
|
||||||
},
|
|
||||||
"axolotl_blue": {
|
|
||||||
"minecraft:variant": { "value": 4 }
|
|
||||||
},
|
|
||||||
|
|
||||||
"axolotl_baby": {
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": "tropical_fish_bucket",
|
|
||||||
"transform_to_item": "water_bucket:0",
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1.1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"axolotl_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_bred": "Math.Random(1,7)",
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:breedable": {
|
|
||||||
"require_tame": false,
|
|
||||||
"breed_items": "tropical_fish_bucket",
|
|
||||||
"transform_to_item": "water_bucket:0",
|
|
||||||
"breeds_with": {
|
|
||||||
"mate_type": "minecraft:axolotl",
|
|
||||||
"baby_type": "minecraft:axolotl",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mutation_factor": {
|
|
||||||
"variant": 0.00083 // roughly 1/1200
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"axolotl_in_water": {
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_water", "operator": "!=", "value": true },
|
|
||||||
"event": "start_drying_out"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"axolotl_dried": {
|
|
||||||
"minecraft:damage_over_time": {
|
|
||||||
"damage_per_hurt": 1,
|
|
||||||
"time_between_hurt": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"axolotl_on_land": {
|
|
||||||
"minecraft:drying_out_timer": {
|
|
||||||
"total_time": 300,
|
|
||||||
"water_bottle_refill_time": 90,
|
|
||||||
"dried_out_event": {
|
|
||||||
"event": "dried_out"
|
|
||||||
},
|
|
||||||
"stopped_drying_out_event": {
|
|
||||||
"event": "stop_drying_out"
|
|
||||||
},
|
|
||||||
"recover_after_dried_out_event": {
|
|
||||||
"event": "recover_after_dried_out"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"axolotl_on_land_in_rain": {
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_water_or_rain", "operator": "!=", "value": true },
|
|
||||||
"event": "start_drying_out"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_water", "operator": "==", "value": true },
|
|
||||||
"event": "enter_water"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "axolotl", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.75,
|
|
||||||
"height": 0.42
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0,
|
|
||||||
"breathes_water": true,
|
|
||||||
"breathes_air": true,
|
|
||||||
"generates_bubbles": false
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 14
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "lightning",
|
|
||||||
"deals_damage": true,
|
|
||||||
"damage_multiplier": 2000.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "in_lava",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:navigation.generic": {
|
|
||||||
"is_amphibious": true,
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"can_swim": true,
|
|
||||||
"can_walk": true,
|
|
||||||
"can_sink": false,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.amphibious": {
|
|
||||||
"max_turn": 15.0
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.1
|
|
||||||
},
|
|
||||||
"minecraft:underwater_movement": {
|
|
||||||
"value": 0.2
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 2
|
|
||||||
},
|
|
||||||
"minecraft:combat_regeneration": {},
|
|
||||||
|
|
||||||
"minecraft:behavior.play_dead": {
|
|
||||||
"priority": 0,
|
|
||||||
"duration": 10,
|
|
||||||
"force_below_health": 8,
|
|
||||||
"random_start_chance": 0.33,
|
|
||||||
"random_damage_range": [ 0, 2 ],
|
|
||||||
"damage_sources": [
|
|
||||||
"contact",
|
|
||||||
"entity_attack",
|
|
||||||
"entity_explosion",
|
|
||||||
"magic",
|
|
||||||
"projectile",
|
|
||||||
"thorns",
|
|
||||||
"wither"
|
|
||||||
],
|
|
||||||
"apply_regeneration": true,
|
|
||||||
"filters": { "test": "in_water", "operator": "==", "value": true }
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 1.1,
|
|
||||||
"can_tempt_vertically": true,
|
|
||||||
"items": [
|
|
||||||
"tropical_fish_bucket"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 3,
|
|
||||||
"must_see": true,
|
|
||||||
"reselect_targets": true,
|
|
||||||
"within_radius": 20.0,
|
|
||||||
"must_see_forget_duration": 17.0,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "in_water", "subject": "other", "value": true },
|
|
||||||
{ "test": "has_component", "subject": "self", "operator": "!=", "value": "minecraft:attack_cooldown" },
|
|
||||||
{
|
|
||||||
"any_of": [
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "squid" },
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "fish" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 8
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "in_water", "subject": "other", "value": true },
|
|
||||||
{
|
|
||||||
"any_of": [
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "drowned" },
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "guardian" },
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "guardian_elder" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 8
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 4,
|
|
||||||
"on_kill": {
|
|
||||||
"event": "killed_enemy_event",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.move_to_water": {
|
|
||||||
"priority": 6,
|
|
||||||
"search_range": 16,
|
|
||||||
"search_height": 5,
|
|
||||||
"search_count": 1,
|
|
||||||
"goal_radius": 0.1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.swim_idle": {
|
|
||||||
"priority": 7,
|
|
||||||
"idle_time": 5.0,
|
|
||||||
"success_rate": 0.05
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_swim": {
|
|
||||||
"priority": 8,
|
|
||||||
"interval": 0,
|
|
||||||
"xz_dist": 30,
|
|
||||||
"y_dist": 15
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 9,
|
|
||||||
"interval": 100
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 10,
|
|
||||||
"target_distance": 6.0,
|
|
||||||
"probability": 0.02
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"axolotl_adult",
|
|
||||||
"axolotl_in_water"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 25,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "axolotl_cyan" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 25,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "axolotl_gold" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 25,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "axolotl_lucy" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 25,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "axolotl_wild" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"attack_cooldown_complete_event": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"attack_cooldown"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"killed_enemy_event": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"attack_cooldown"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"axolotl_adult"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"axolotl_baby",
|
|
||||||
"axolotl_in_water"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "has_component",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "minecraft:variant"
|
|
||||||
},
|
|
||||||
"add": { "component_groups": [ "axolotl_blue" ] }
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": { "component_groups": [ "axolotl_baby" ] },
|
|
||||||
"add": { "component_groups": [ "axolotl_adult" ] }
|
|
||||||
},
|
|
||||||
|
|
||||||
"stop_drying_out": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"axolotl_on_land",
|
|
||||||
"axolotl_dried"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "axolotl_on_land_in_rain" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"start_drying_out": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"axolotl_on_land_in_rain",
|
|
||||||
"axolotl_in_water"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "axolotl_on_land" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dried_out": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "axolotl_dried" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"recover_after_dried_out": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "axolotl_dried" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"enter_water": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"axolotl_on_land",
|
|
||||||
"axolotl_on_land_in_rain",
|
|
||||||
"axolotl_dried"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"axolotl_in_water"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,82 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:bat",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "bat", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.5,
|
|
||||||
"height": 0.9
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "fall",
|
|
||||||
"deals_damage": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.1
|
|
||||||
},
|
|
||||||
"minecraft:navigation.float": {
|
|
||||||
"can_path_over_water": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float_wander": {
|
|
||||||
"xz_dist": 10,
|
|
||||||
"y_dist": 7,
|
|
||||||
"y_offset": -2.0,
|
|
||||||
"random_reselect": true,
|
|
||||||
"float_duration": [ 0.1, 0.35 ]
|
|
||||||
},
|
|
||||||
"minecraft:can_fly": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 6,
|
|
||||||
"max": 6
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,835 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:bee",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"bee_baby": {
|
|
||||||
"minecraft:is_baby": {},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": [
|
|
||||||
"minecraft:red_flower", // All small flowers except Dandelion
|
|
||||||
"minecraft:yellow_flower", // Dandelion
|
|
||||||
"minecraft:wither_rose",
|
|
||||||
"minecraft:double_plant:0", // Sunflower
|
|
||||||
"minecraft:double_plant:1", // Lilac
|
|
||||||
"minecraft:double_plant:4", // Rose Bush
|
|
||||||
"minecraft:double_plant:5", // Peony
|
|
||||||
"minecraft:flowering_azalea", //Flowering Azalea
|
|
||||||
"minecraft:azalea_leaves_flowered" //Flowering Azalea leaves
|
|
||||||
],
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 11, // This has to be lower priority than move to block goal so that bee seek shelter in rain instead of following parents
|
|
||||||
"speed_multiplier": 1.1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"bee_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_bred": "Math.Random(1,7)",
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:breedable": {
|
|
||||||
"require_tame": false,
|
|
||||||
"breeds_with": {
|
|
||||||
"mate_type": "minecraft:bee",
|
|
||||||
"baby_type": "minecraft:bee",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"breed_items": [
|
|
||||||
"minecraft:red_flower", // All small flowers except Dandelion
|
|
||||||
"minecraft:yellow_flower", // Dandelion
|
|
||||||
"minecraft:wither_rose",
|
|
||||||
"minecraft:double_plant:0", // Sunflower
|
|
||||||
"minecraft:double_plant:1", // Lilac
|
|
||||||
"minecraft:double_plant:4", // Rose Bush
|
|
||||||
"minecraft:double_plant:5", // Peony
|
|
||||||
"minecraft:flowering_azalea", //Flowering Azalea
|
|
||||||
"minecraft:azalea_leaves_flowered" //Flowering Azalea leaves
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"track_attacker": {
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"angry_bee": {
|
|
||||||
"minecraft:angry": {
|
|
||||||
"duration": 25,
|
|
||||||
"broadcastAnger": true,
|
|
||||||
"broadcastRange": 20,
|
|
||||||
"broadcast_filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "pacified"
|
|
||||||
},
|
|
||||||
"calm_event": {
|
|
||||||
"event": "calmed_down",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 2,
|
|
||||||
"attack_once": true,
|
|
||||||
"speed_multiplier": 1.4,
|
|
||||||
"on_attack": {
|
|
||||||
"event": "countdown_to_perish_event",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"escape_fire": {
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.25,
|
|
||||||
"force": true
|
|
||||||
},
|
|
||||||
"minecraft:timer": {
|
|
||||||
"looping": false,
|
|
||||||
"time": [20,50],
|
|
||||||
"randomInterval": true,
|
|
||||||
"time_down_event": {
|
|
||||||
"event": "stop_panicking_after_fire",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"countdown_to_perish": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.25,
|
|
||||||
"force": true
|
|
||||||
},
|
|
||||||
"minecraft:timer": {
|
|
||||||
"looping": false,
|
|
||||||
"time": [10, 60],
|
|
||||||
"randomInterval": true,
|
|
||||||
"time_down_event": {
|
|
||||||
"event": "perish_event",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "bee", "mob", "arthropod", "pacified" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"perish": {
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"cause": "none",
|
|
||||||
"damage_per_tick": 999
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"take_nearest_target": {
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 2,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "player"
|
|
||||||
},
|
|
||||||
"max_dist": 10
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:timer": {
|
|
||||||
"looping": true,
|
|
||||||
"time": 5,
|
|
||||||
"time_down_event": {
|
|
||||||
"event": "calmed_down",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"look_for_food": {
|
|
||||||
"minecraft:behavior.move_to_block": {
|
|
||||||
"priority": 10,
|
|
||||||
"tick_interval": 1,
|
|
||||||
"start_chance": 0.5,
|
|
||||||
"search_range": 6,
|
|
||||||
"search_height": 4,
|
|
||||||
"goal_radius": 1.0,
|
|
||||||
"stay_duration": 20.0,
|
|
||||||
"target_selection_method": "random",
|
|
||||||
"target_offset": [0, 0.25, 0],
|
|
||||||
"target_blocks": [
|
|
||||||
"minecraft:red_flower", // All small flowers except Dandelion
|
|
||||||
"minecraft:yellow_flower", // Dandelion
|
|
||||||
"minecraft:wither_rose",
|
|
||||||
"minecraft:double_plant:8", // Sunflower top
|
|
||||||
"minecraft:double_plant:9", // Lilac top
|
|
||||||
"minecraft:double_plant:12", // Rose Bush top
|
|
||||||
"minecraft:double_plant:13", // Peony top
|
|
||||||
"minecraft:flowering_azalea", //Flowering azalea
|
|
||||||
"minecraft:azalea_leaves_flowered" //Flowering Azalea leaves
|
|
||||||
],
|
|
||||||
"on_stay_completed": [
|
|
||||||
{
|
|
||||||
"event": "collected_nectar",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:timer": {
|
|
||||||
"looping": true,
|
|
||||||
"time": 180,
|
|
||||||
"time_down_event": {
|
|
||||||
"event": "find_flower_timeout"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:ambient_sound_interval" :{
|
|
||||||
"event_name" : "ambient.pollinate",
|
|
||||||
"range" : 3.0,
|
|
||||||
"value" : 2.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"has_nectar": {
|
|
||||||
"minecraft:is_charged": {},
|
|
||||||
"minecraft:grows_crop": {
|
|
||||||
"charges": 10,
|
|
||||||
"chance": 0.03
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"return_to_home": {
|
|
||||||
"minecraft:behavior.go_home": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.0,
|
|
||||||
"interval": 1,
|
|
||||||
"goal_radius": 1.2,
|
|
||||||
"on_home": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of":[
|
|
||||||
{ "test": "is_block", "subject": "block", "value": "minecraft:bee_nest" },
|
|
||||||
{ "test": "is_block", "subject": "block", "value": "minecraft:beehive" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:bee_returned_to_hive",
|
|
||||||
"target": "block"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of":[
|
|
||||||
{ "test": "is_block", "subject": "block", "operator": "!=", "value": "minecraft:bee_nest" },
|
|
||||||
{ "test": "is_block", "subject": "block", "operator": "!=", "value": "minecraft:beehive" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "find_hive_event",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"on_failed": {
|
|
||||||
"event": "find_hive_event",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"find_hive": {
|
|
||||||
"minecraft:behavior.move_to_block": {
|
|
||||||
"priority": 10,
|
|
||||||
"search_range": 16,
|
|
||||||
"search_height": 10,
|
|
||||||
"tick_interval": 1,
|
|
||||||
"goal_radius": 0.633, // was tested with 0.4 when the goal radius wasn't squared. sqrt(0.4)~0.633
|
|
||||||
"target_blocks": [
|
|
||||||
"bee_nest",
|
|
||||||
"beehive"
|
|
||||||
],
|
|
||||||
"on_reach": [
|
|
||||||
{
|
|
||||||
"event": "minecraft:bee_returned_to_hive",
|
|
||||||
"target": "block"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:timer": {
|
|
||||||
"looping": false,
|
|
||||||
"time": 180,
|
|
||||||
"time_down_event": {
|
|
||||||
"event": "find_hive_timeout",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hive_full": {
|
|
||||||
"minecraft:timer": {
|
|
||||||
"looping": false,
|
|
||||||
"time": [5, 20],
|
|
||||||
"randomInterval": true,
|
|
||||||
"time_down_event": {
|
|
||||||
"event": "find_hive_event",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"shelter_detection": {
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"event": "seek_shelter",
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"any_of": [
|
|
||||||
{
|
|
||||||
"test": "is_daytime",
|
|
||||||
"value": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "weather",
|
|
||||||
"operator": "==",
|
|
||||||
"value": "precipitation"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{ // Assume we are already going home if we have nectar
|
|
||||||
"test": "has_component",
|
|
||||||
"value": "minecraft:is_charged",
|
|
||||||
"operator": "!="
|
|
||||||
},
|
|
||||||
{ // Assume we are already going home if we have nectar
|
|
||||||
"test": "has_biome_tag",
|
|
||||||
"value": "overworld"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"abort_shelter_detection": {
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"event": "abort_sheltering",
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "weather",
|
|
||||||
"operator": "==",
|
|
||||||
"value": "clear"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_daytime",
|
|
||||||
"value": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"easy_attack": {
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 2
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"normal_attack": {
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 2,
|
|
||||||
"effect_name": "poison",
|
|
||||||
"effect_duration": 10
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hard_attack": {
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 2,
|
|
||||||
"effect_name": "poison",
|
|
||||||
"effect_duration": 18
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"default_sound" : {
|
|
||||||
"minecraft:ambient_sound_interval" :{
|
|
||||||
"event_name" : "ambient",
|
|
||||||
"range" : 0.0,
|
|
||||||
"value" : 0.0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1.25,
|
|
||||||
"within_radius": 8,
|
|
||||||
"can_tempt_vertically": true,
|
|
||||||
"items": [
|
|
||||||
"minecraft:red_flower", // All small flowers except Dandelion
|
|
||||||
"minecraft:yellow_flower", // Dandelion
|
|
||||||
"minecraft:wither_rose",
|
|
||||||
"minecraft:double_plant:0", // Sunflower
|
|
||||||
"minecraft:double_plant:1", // Lilac
|
|
||||||
"minecraft:double_plant:4", // Rose Bush
|
|
||||||
"minecraft:double_plant:5", // Peony
|
|
||||||
"minecraft:flowering_azalea", //Flowering azalea
|
|
||||||
"minecraft:azalea_leaves_flowered" //Flowering Azalea leaves
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.move_towards_home_restriction": {
|
|
||||||
"priority": 9
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_hover": {
|
|
||||||
"priority": 12,
|
|
||||||
"xz_dist": 8,
|
|
||||||
"y_dist": 8,
|
|
||||||
"y_offset": -1,
|
|
||||||
"interval": 1,
|
|
||||||
"hover_height": [1, 4]
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 19
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "bee", "mob", "arthropod" ]
|
|
||||||
},
|
|
||||||
"minecraft:on_target_acquired": {
|
|
||||||
"event": "attacked",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"totalSupply": 15,
|
|
||||||
"suffocateTime": 0
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.55,
|
|
||||||
"height": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
},
|
|
||||||
"minecraft:home": {
|
|
||||||
"restriction_radius": 22,
|
|
||||||
"home_block_list": [
|
|
||||||
"minecraft:bee_nest",
|
|
||||||
"minecraft:beehive"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:follow_range": {
|
|
||||||
"value": 1024
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "fall",
|
|
||||||
"deals_damage": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "in_lava",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.3
|
|
||||||
},
|
|
||||||
"minecraft:flying_speed": {
|
|
||||||
"value": 0.15
|
|
||||||
},
|
|
||||||
"minecraft:navigation.hover": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"can_sink": false,
|
|
||||||
"can_pass_doors": false,
|
|
||||||
"can_path_from_air": true,
|
|
||||||
"avoid_water": true,
|
|
||||||
"avoid_damage_blocks": true,
|
|
||||||
"avoid_sun": false
|
|
||||||
},
|
|
||||||
"minecraft:movement.hover": {},
|
|
||||||
"minecraft:jump.static": {},
|
|
||||||
"minecraft:can_fly": {},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 10,
|
|
||||||
"max": 10
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {},
|
|
||||||
"minecraft:block_sensor": {
|
|
||||||
"sensor_radius": 16,
|
|
||||||
"on_break": [
|
|
||||||
{
|
|
||||||
"block_list": [
|
|
||||||
"minecraft:beehive", "minecraft:bee_nest"
|
|
||||||
],
|
|
||||||
"on_block_broken": "hive_destroyed"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:physics": {},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 95,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"bee_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 5,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"bee_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"track_attacker",
|
|
||||||
"shelter_detection",
|
|
||||||
"look_for_food"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"bee_baby",
|
|
||||||
"shelter_detection",
|
|
||||||
"track_attacker",
|
|
||||||
"look_for_food"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"bee_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"bee_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:exited_disturbed_hive": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"take_nearest_target"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"find_hive",
|
|
||||||
"return_to_home",
|
|
||||||
"has_nectar",
|
|
||||||
"abort_shelter_detection",
|
|
||||||
"shelter_detection",
|
|
||||||
"escape_fire"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"hive_destroyed": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "pacified"
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"take_nearest_target"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"escape_fire"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"stop_panicking_after_fire" : {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"escape_fire"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:exited_hive_on_fire": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"escape_fire"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:exited_hive": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"look_for_food",
|
|
||||||
"shelter_detection"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"find_hive",
|
|
||||||
"return_to_home",
|
|
||||||
"has_nectar",
|
|
||||||
"abort_shelter_detection"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:hive_full": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"hive_full"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"find_hive",
|
|
||||||
"return_to_home"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"attacked": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"angry_bee"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"take_nearest_target"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test" : "is_difficulty", "value" : "easy"},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "normal_attack", "hard_attack" ]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "easy_attack" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test" : "is_difficulty", "value" : "normal"},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "easy_attack", "hard_attack" ]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "normal_attack" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test" : "is_difficulty", "value" : "hard"},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "easy_attack", "normal_attack" ]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "hard_attack" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"calmed_down": {
|
|
||||||
"add" : {
|
|
||||||
"component_groups": [
|
|
||||||
"shelter_detection",
|
|
||||||
"return_to_home"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"angry_bee",
|
|
||||||
"take_nearest_target"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"collected_nectar": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"look_for_food"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"return_to_home",
|
|
||||||
"has_nectar",
|
|
||||||
"default_sound"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"find_hive_event": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"return_to_home",
|
|
||||||
"hive_full"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"find_hive"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"find_hive_timeout": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "has_component",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "minecraft:is_charged"
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"find_hive",
|
|
||||||
"escape_fire"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"look_for_food"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "has_component",
|
|
||||||
"value": "minecraft:is_charged"
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"find_hive"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"return_to_home"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"find_flower_timeout": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"look_for_food"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"return_to_home"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"seek_shelter": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"look_for_food",
|
|
||||||
"collect_nectar",
|
|
||||||
"shelter_detection"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"default_sound",
|
|
||||||
"return_to_home",
|
|
||||||
"abort_shelter_detection"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"abort_sheltering": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"abort_shelter_detection",
|
|
||||||
"return_to_home",
|
|
||||||
"escape_fire"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"shelter_detection",
|
|
||||||
"look_for_food"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"countdown_to_perish_event" : {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"collect_nectar",
|
|
||||||
"track_attacker",
|
|
||||||
"take_nearest_target",
|
|
||||||
"look_for_food",
|
|
||||||
"angry_bee",
|
|
||||||
"hive_full",
|
|
||||||
"find_hive",
|
|
||||||
"escape_fire"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"countdown_to_perish"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"perish_event":{
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"perish"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,200 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:blaze",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"mode_switcher": {
|
|
||||||
"minecraft:target_nearby_sensor": {
|
|
||||||
"inside_range": 2.0,
|
|
||||||
"outside_range": 3.0,
|
|
||||||
"must_see": true,
|
|
||||||
"on_inside_range": {
|
|
||||||
"event": "switch_to_melee",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"on_outside_range": {
|
|
||||||
"event": "switch_to_ranged",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ranged_mode": {
|
|
||||||
"minecraft:shooter": {
|
|
||||||
"def": "minecraft:small_fireball"
|
|
||||||
},
|
|
||||||
"minecraft:behavior.ranged_attack": {
|
|
||||||
"priority": 3,
|
|
||||||
"burst_shots": 3,
|
|
||||||
"burst_interval": 0.3,
|
|
||||||
"charge_charged_trigger": 0.0,
|
|
||||||
"charge_shoot_trigger": 4.0,
|
|
||||||
"attack_interval_min": 3.0,
|
|
||||||
"attack_interval_max": 5.0,
|
|
||||||
"attack_radius": 16.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"melee_mode": {
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 6
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 3
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? 10 : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/blaze.json"
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.5,
|
|
||||||
"height": 1.8
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "fall",
|
|
||||||
"deals_damage": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.23
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"avoid_water": true,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 20,
|
|
||||||
"max": 20
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "in_contact_with_water",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"cause": "drowning",
|
|
||||||
"damage_per_tick": 1
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:follow_range": {
|
|
||||||
"value": 48,
|
|
||||||
"max": 48
|
|
||||||
},
|
|
||||||
"minecraft:fire_immune": {
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 2,
|
|
||||||
"must_see": true,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "player"
|
|
||||||
},
|
|
||||||
"max_dist": 48.0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 5
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "blaze", "monster", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:on_hurt": {
|
|
||||||
"event": "minecraft:on_hurt_event",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:on_hurt_by_player": {
|
|
||||||
"event": "minecraft:on_hurt_event",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"mode_switcher"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"switch_to_melee": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"ranged_mode"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"melee_mode"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"switch_to_ranged": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"melee_mode"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"ranged_mode"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:on_hurt_event": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"mode_switcher"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,287 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.100",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:boat",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:floating": {
|
|
||||||
"minecraft:buoyant": {
|
|
||||||
"base_buoyancy": 1.0,
|
|
||||||
"apply_gravity": true,
|
|
||||||
"simulate_waves": true,
|
|
||||||
"big_wave_probability": 0.03,
|
|
||||||
"big_wave_speed": 10.0,
|
|
||||||
"liquid_blocks": [
|
|
||||||
"minecraft:water",
|
|
||||||
"minecraft:flowing_water"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:can_ride": {
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 2,
|
|
||||||
"interact_text": "action.interact.ride.boat",
|
|
||||||
"pull_in_entities": true,
|
|
||||||
|
|
||||||
"seats": [
|
|
||||||
{
|
|
||||||
"position": [ 0.0, -0.2, 0.0 ],
|
|
||||||
"min_rider_count": 0,
|
|
||||||
"max_rider_count": 1,
|
|
||||||
|
|
||||||
"rotate_rider_by": -90,
|
|
||||||
"lock_rider_rotation": 90
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"position": [ 0.2, -0.2, 0.0 ],
|
|
||||||
"min_rider_count": 2,
|
|
||||||
"max_rider_count": 2,
|
|
||||||
|
|
||||||
"rotate_rider_by": "query.has_any_family('blaze', 'creeper', 'enderman', 'illager', 'magmacube', 'piglin', 'player', 'skeleton', 'slime', 'villager', 'wandering_trader', 'witch', 'zombie', 'zombie_pigman') ? -90 : 0",
|
|
||||||
"lock_rider_rotation": 90
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"position": [ -0.6, -0.2, 0.0 ],
|
|
||||||
"min_rider_count": 2,
|
|
||||||
"max_rider_count": 2,
|
|
||||||
"rotate_rider_by": "query.has_any_family('blaze', 'creeper', 'enderman', 'illager', 'magmacube', 'piglin', 'player', 'skeleton', 'slime', 'villager', 'wandering_trader', 'witch', 'zombie', 'zombie_pigman') ? -90 : 0",
|
|
||||||
"lock_rider_rotation": 90
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:above_bubble_column_down": {
|
|
||||||
"minecraft:buoyant": {
|
|
||||||
"base_buoyancy": 1.0,
|
|
||||||
"apply_gravity": true,
|
|
||||||
"simulate_waves": false,
|
|
||||||
"liquid_blocks": [
|
|
||||||
"minecraft:water",
|
|
||||||
"minecraft:flowing_water"
|
|
||||||
],
|
|
||||||
"drag_down_on_buoyancy_removed": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:timer": {
|
|
||||||
"looping": false,
|
|
||||||
"time": 3,
|
|
||||||
"time_down_event": {
|
|
||||||
"event": "minecraft:sink",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:out_of_control": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:above_bubble_column_up": {
|
|
||||||
"minecraft:buoyant": {
|
|
||||||
"base_buoyancy": 1.0,
|
|
||||||
"apply_gravity": true,
|
|
||||||
"simulate_waves": false,
|
|
||||||
"liquid_blocks": [
|
|
||||||
"minecraft:water",
|
|
||||||
"minecraft:flowing_water"
|
|
||||||
],
|
|
||||||
"drag_down_on_buoyancy_removed": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:out_of_control": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "boat", "inanimate" ]
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 1.4,
|
|
||||||
"height": 0.455
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "in_lava",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/boat.json"
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 2,
|
|
||||||
"interact_text": "action.interact.ride.boat",
|
|
||||||
"pull_in_entities": true,
|
|
||||||
|
|
||||||
"seats": [
|
|
||||||
{
|
|
||||||
"position": [ 0.0, -0.2, 0.0 ],
|
|
||||||
"min_rider_count": 0,
|
|
||||||
"max_rider_count": 1,
|
|
||||||
|
|
||||||
"rotate_rider_by": -90,
|
|
||||||
"lock_rider_rotation": 90
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"position": [ 0.2, -0.2, 0.0 ],
|
|
||||||
"min_rider_count": 2,
|
|
||||||
"max_rider_count": 2,
|
|
||||||
|
|
||||||
"rotate_rider_by": "query.has_any_family('blaze', 'creeper', 'enderman', 'illager', 'magmacube', 'piglin', 'player', 'skeleton', 'slime', 'villager', 'wandering_trader', 'witch', 'zombie', 'zombie_pigman') ? -90 : 0",
|
|
||||||
"lock_rider_rotation": 90
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"position": [ -0.6, -0.2, 0.0 ],
|
|
||||||
"min_rider_count": 2,
|
|
||||||
"max_rider_count": 2,
|
|
||||||
"rotate_rider_by": "query.has_any_family('blaze', 'creeper', 'enderman', 'illager', 'magmacube', 'piglin', 'player', 'skeleton', 'slime', 'villager', 'wandering_trader', 'witch', 'zombie', 'zombie_pigman') ? -90 : 0",
|
|
||||||
"lock_rider_rotation": 90
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:is_stackable": {
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:buoyant": {
|
|
||||||
"base_buoyancy": 1.0,
|
|
||||||
"apply_gravity": true,
|
|
||||||
"simulate_waves": true,
|
|
||||||
"big_wave_probability": 0.03,
|
|
||||||
"big_wave_speed": 10.0,
|
|
||||||
"liquid_blocks": [
|
|
||||||
"minecraft:water",
|
|
||||||
"minecraft:flowing_water"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 60.0,
|
|
||||||
"max_dropped_ticks": 20,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
},
|
|
||||||
"conditional_values": [
|
|
||||||
{
|
|
||||||
"max_optimized_distance": 0.0,
|
|
||||||
"max_dropped_ticks": 0,
|
|
||||||
"use_motion_prediction_hints": true,
|
|
||||||
"conditional_values": [
|
|
||||||
{
|
|
||||||
"test": "is_moving",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:inside_block_notifier": {
|
|
||||||
"block_list": [
|
|
||||||
{
|
|
||||||
"block": {
|
|
||||||
"name": "minecraft:bubble_column",
|
|
||||||
"states": {
|
|
||||||
"drag_down": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entered_block_event": {
|
|
||||||
"event": "minecraft:entered_bubble_column_down",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"exited_block_event": {
|
|
||||||
"event": "minecraft:exited_bubble_column",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"block": {
|
|
||||||
"name": "minecraft:bubble_column",
|
|
||||||
"states": {
|
|
||||||
"drag_down": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"entered_block_event": {
|
|
||||||
"event": "minecraft:entered_bubble_column_up",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"exited_block_event": {
|
|
||||||
"event": "minecraft:exited_bubble_column",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entered_bubble_column_down": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:floating"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:above_bubble_column_down"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:entered_bubble_column_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:floating"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:above_bubble_column_up"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:exited_bubble_column": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:above_bubble_column_down",
|
|
||||||
"minecraft:above_bubble_column_up"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:floating",
|
|
||||||
"minecraft:can_ride"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:sink": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:floating",
|
|
||||||
"minecraft:can_ride",
|
|
||||||
"minecraft:above_bubble_column_down",
|
|
||||||
"minecraft:above_bubble_column_up"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,720 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.100",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:cat",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:cat_baby": {
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 0.4
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": [ "fish", "salmon" ],
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:cat_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_bred": "Math.Random(1,7)",
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/cat.json"
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 0.8
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:breedable": {
|
|
||||||
"require_tame": true,
|
|
||||||
"require_full_health": true,
|
|
||||||
"allow_sitting": true,
|
|
||||||
"breeds_with": {
|
|
||||||
"mate_type": "minecraft:cat",
|
|
||||||
"baby_type": "minecraft:cat",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"breed_items": [ "fish", "salmon" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_wild": {
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 10,
|
|
||||||
"max": 10
|
|
||||||
},
|
|
||||||
"minecraft:tameable": {
|
|
||||||
"probability": 0.33,
|
|
||||||
"tame_items": [ "fish", "salmon" ],
|
|
||||||
"tame_event": {
|
|
||||||
"event": "minecraft:on_tame",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"zombie"
|
|
||||||
],
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 0.35, 0.0 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 1,
|
|
||||||
"reselect_targets": true,
|
|
||||||
"within_radius": 16.0,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "rabbit"
|
|
||||||
},
|
|
||||||
"max_dist": 8
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "baby_turtle"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "in_water",
|
|
||||||
"subject": "other",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 8
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 0.5,
|
|
||||||
"within_radius": 16,
|
|
||||||
"can_get_scared": true,
|
|
||||||
"items": [
|
|
||||||
"fish",
|
|
||||||
"salmon"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.avoid_mob_type": {
|
|
||||||
"priority": 6,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "player"
|
|
||||||
},
|
|
||||||
"max_dist": 10,
|
|
||||||
"walk_speed_multiplier": 0.8,
|
|
||||||
"sprint_speed_multiplier": 1.33
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.move_towards_dwelling_restriction": {
|
|
||||||
"priority": 7
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_tame": {
|
|
||||||
"minecraft:is_tamed": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 20,
|
|
||||||
"max": 20
|
|
||||||
},
|
|
||||||
"minecraft:color": {
|
|
||||||
"value": 14
|
|
||||||
},
|
|
||||||
"minecraft:sittable": {
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 0.5,
|
|
||||||
"within_radius": 16,
|
|
||||||
"items": [
|
|
||||||
"fish",
|
|
||||||
"salmon"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:is_dyeable": {
|
|
||||||
"interact_text": "action.interact.dye"
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_owner": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.0,
|
|
||||||
"start_distance": 10,
|
|
||||||
"stop_distance": 2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.stay_while_sitting": {
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
"minecraft:behavior.ocelot_sit_on_block": {
|
|
||||||
"priority": 7,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.pet_sleep_with_owner": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 1.2,
|
|
||||||
"search_radius": 10,
|
|
||||||
"search_height": 10,
|
|
||||||
"goal_radius": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:on_wake_with_owner": {
|
|
||||||
"event": "minecraft:pet_slept_with_owner",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_gift_for_owner": {
|
|
||||||
"minecraft:behavior.drop_item_for": {
|
|
||||||
"priority": 1,
|
|
||||||
"seconds_before_pickup": 0.0,
|
|
||||||
"cooldown": 0.25,
|
|
||||||
"drop_item_chance": 0.7,
|
|
||||||
"offering_distance": 5.0,
|
|
||||||
"minimum_teleport_distance": 2.0,
|
|
||||||
"max_head_look_at_height": 10.0,
|
|
||||||
"target_range": [ 5.0, 5.0, 5.0 ],
|
|
||||||
"teleport_offset": [ 0.0, 1.0, 0.0],
|
|
||||||
"time_of_day_range": [ 0.74999, 0.80 ],
|
|
||||||
"speed_multiplier": 1.0,
|
|
||||||
"search_range": 5,
|
|
||||||
"search_height": 2,
|
|
||||||
"search_count": 0,
|
|
||||||
"goal_radius": 1.0,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "is_family", "subject": "other", "value": "player" },
|
|
||||||
"max_dist": 6
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"loot_table": "loot_tables/entities/cat_gift.json",
|
|
||||||
"on_drop_attempt": {
|
|
||||||
"event": "minecraft:cat_gifted_owner",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_white": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_tuxedo": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_red": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_siamese": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 3
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_british": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 4
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_calico": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_persian": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 6
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_ragdoll": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 7
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_tabby": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 8
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_black": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 9
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_jellie": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 10
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:attack_damage": {
|
|
||||||
"value": 4
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "cat", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.6,
|
|
||||||
"height": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:healable": {
|
|
||||||
"items": [
|
|
||||||
{
|
|
||||||
"item": "fish",
|
|
||||||
"heal_amount": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "salmon",
|
|
||||||
"heal_amount": 2
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.3
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_float": true,
|
|
||||||
"avoid_water": true,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "fall",
|
|
||||||
"deals_damage": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:dweller": {
|
|
||||||
"dwelling_type": "village",
|
|
||||||
"dweller_role": "passive",
|
|
||||||
"update_interval_base": 60,
|
|
||||||
"update_interval_variant": 40,
|
|
||||||
"can_find_poi": false,
|
|
||||||
"can_migrate": true,
|
|
||||||
"first_founding_reward": 0
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.25
|
|
||||||
},
|
|
||||||
"minecraft:behavior.mount_pathing": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.25,
|
|
||||||
"target_dist": 0,
|
|
||||||
"track_target": true
|
|
||||||
},
|
|
||||||
"minecraft:behavior.leap_at_target": {
|
|
||||||
"priority": 3,
|
|
||||||
"target_dist": 0.3
|
|
||||||
},
|
|
||||||
"minecraft:behavior.ocelotattack": {
|
|
||||||
"priority": 4,
|
|
||||||
"cooldown_time": 1.0,
|
|
||||||
"x_max_rotation": 30.0,
|
|
||||||
"y_max_head_rotation": 30.0,
|
|
||||||
"max_distance": 15.0,
|
|
||||||
"max_sneak_range": 15.0,
|
|
||||||
"max_sprint_range": 4.0,
|
|
||||||
"reach_multiplier": 2.0,
|
|
||||||
"sneak_speed_multiplier": 0.6,
|
|
||||||
"sprint_speed_multiplier": 1.33,
|
|
||||||
"walk_speed_multiplier": 0.8
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 8,
|
|
||||||
"speed_multiplier": 0.8
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 9
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 3,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_adult",
|
|
||||||
"minecraft:cat_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_baby",
|
|
||||||
"minecraft:cat_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_white"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_tuxedo"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_red"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_siamese"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_british"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_calico"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_persian"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_ragdoll"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_tabby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_black"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_jellie"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:spawn_from_village": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 3,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_adult",
|
|
||||||
"minecraft:cat_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_baby",
|
|
||||||
"minecraft:cat_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_tuxedo"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_red"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_siamese"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_white"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_british"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_calico"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_persian"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_ragdoll"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_tabby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_jellie"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:spawn_midnight_cat": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_adult",
|
|
||||||
"minecraft:cat_wild",
|
|
||||||
"minecraft:cat_black"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "has_component",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "minecraft:is_baby"
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_baby",
|
|
||||||
"minecraft:cat_tame"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:on_tame": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_tame"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:pet_slept_with_owner": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_gift_for_owner"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cat_gifted_owner": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cat_gift_for_owner"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,444 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:cave_spider",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:spider_jockey": {
|
|
||||||
"minecraft:addrider": {
|
|
||||||
"entity_type": "minecraft:skeleton"
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"skeleton"
|
|
||||||
],
|
|
||||||
"seats": {
|
|
||||||
"position": [0.0, 0.3, -0.1]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:spider_stray_jockey": {
|
|
||||||
"minecraft:addrider": {
|
|
||||||
"entity_type": "minecraft:skeleton.stray"
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"skeleton"
|
|
||||||
],
|
|
||||||
"seats": {
|
|
||||||
"position": [0.0, 0.3, -0.1]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:spider_wither_jockey": {
|
|
||||||
"minecraft:addrider": {
|
|
||||||
"entity_type": "minecraft:skeleton.wither"
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"skeleton"
|
|
||||||
],
|
|
||||||
"seats": {
|
|
||||||
"position": [0.0, 0.25, -0.1]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:spider_neutral": {
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"filters": { "test" : "is_brightness", "operator" : "<", "value" : 0.49 },
|
|
||||||
"event": "minecraft:become_hostile"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:on_target_acquired": {
|
|
||||||
"event": "minecraft:become_angry"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:spider_hostile": {
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"filters": { "test": "is_brightness", "operator": ">", "value": 0.49 },
|
|
||||||
"event": "minecraft:become_neutral"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 2,
|
|
||||||
"must_see": true,
|
|
||||||
"attack_interval": 5,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "snowgolem"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "irongolem"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 16
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.leap_at_target": {
|
|
||||||
"priority": 4,
|
|
||||||
"yd": 0.4,
|
|
||||||
"must_be_on_ground": false
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 3,
|
|
||||||
"track_target": true,
|
|
||||||
"random_stop_interval": 100,
|
|
||||||
"reach_multiplier": 0.8
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:spider_angry": {
|
|
||||||
"minecraft:angry": {
|
|
||||||
"duration": 10,
|
|
||||||
"duration_delta": 3,
|
|
||||||
"calm_event": {
|
|
||||||
"event": "minecraft:on_calm",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 2,
|
|
||||||
"must_see": true,
|
|
||||||
"attack_interval": 10,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "snowgolem"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "irongolem"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 16
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.leap_at_target": {
|
|
||||||
"priority": 4,
|
|
||||||
"yd": 0.4,
|
|
||||||
"must_be_on_ground": false
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 3,
|
|
||||||
"track_target": true,
|
|
||||||
"reach_multiplier": 1.4
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:spider_poison_easy": {
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 2,
|
|
||||||
"effect_name": "poison",
|
|
||||||
"effect_duration": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:spider_poison_normal": {
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 2,
|
|
||||||
"effect_name": "poison",
|
|
||||||
"effect_duration": 7
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:spider_poison_hard": {
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 2,
|
|
||||||
"effect_name": "poison",
|
|
||||||
"effect_duration": 15
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? 5 : 0"
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "cavespider", "monster", "arthropod", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/spider.json"
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.7,
|
|
||||||
"height": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 12,
|
|
||||||
"max": 12
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.3
|
|
||||||
},
|
|
||||||
"minecraft:navigation.climb": {
|
|
||||||
"can_path_over_water": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.mount_pathing": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1.25,
|
|
||||||
"target_dist": 0.0,
|
|
||||||
"track_target": true
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 0.8
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 7,
|
|
||||||
"look_distance": 6.0,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 7
|
|
||||||
},
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"zombie"
|
|
||||||
],
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 0.3, 0.0 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 80,
|
|
||||||
"filters": {
|
|
||||||
"all_of" : [
|
|
||||||
{ "test" : "is_daytime", "value" : false },
|
|
||||||
{ "test" : "is_snow_covered", "value" : true },
|
|
||||||
{ "test" : "is_underground", "value" : false }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"remove": { },
|
|
||||||
"add": {
|
|
||||||
"component_groups":
|
|
||||||
[
|
|
||||||
"minecraft:spider_stray_jockey",
|
|
||||||
"minecraft:spider_neutral"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 80,
|
|
||||||
"filters": {
|
|
||||||
"test": "is_biome", "value" : "the_nether"
|
|
||||||
},
|
|
||||||
"remove": { },
|
|
||||||
"add": {
|
|
||||||
"component_groups":
|
|
||||||
[
|
|
||||||
"minecraft:spider_wither_jockey",
|
|
||||||
"minecraft:spider_neutral"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 20,
|
|
||||||
"filters": {
|
|
||||||
"all_of" : [
|
|
||||||
{ "test" : "is_daytime", "value" : false },
|
|
||||||
{ "test" : "is_underground", "value" : true }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"remove": { },
|
|
||||||
"add": {
|
|
||||||
"component_groups":
|
|
||||||
[
|
|
||||||
"minecraft:spider_jockey",
|
|
||||||
"minecraft:spider_neutral"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 99,
|
|
||||||
"remove": { },
|
|
||||||
"add": {
|
|
||||||
"component_groups":
|
|
||||||
[
|
|
||||||
"minecraft:spider_neutral"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:become_hostile": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:spider_neutral"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:spider_hostile"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test" : "is_difficulty", "value" : "easy"},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "minecraft:spider_poison_hard", "minecraft:spider_poison_normal" ]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:spider_poison_easy" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test" : "is_difficulty", "value" : "normal"},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "minecraft:spider_poison_easy", "minecraft:spider_poison_hard" ]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:spider_poison_normal" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test" : "is_difficulty", "value" : "hard"},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "minecraft:spider_poison_easy", "minecraft:spider_poison_normal" ]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:spider_poison_hard" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:become_neutral": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:spider_hostile"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:spider_neutral"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:become_angry": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:spider_neutral"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:spider_angry"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test" : "is_difficulty", "value" : "easy"},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "minecraft:spider_poison_hard", "minecraft:spider_poison_normal" ]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:spider_poison_easy" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test": "is_difficulty", "value": "normal" },
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "minecraft:spider_poison_easy", "minecraft:spider_poison_hard" ]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:spider_poison_normal" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test" : "is_difficulty", "value" : "hard"},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "minecraft:spider_poison_easy", "minecraft:spider_poison_normal" ]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:spider_poison_hard" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:on_calm": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:spider_angry"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:spider_neutral"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,53 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:chest_minecart",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "minecart", "inanimate" ]
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.98,
|
|
||||||
"height": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:rail_movement": {
|
|
||||||
},
|
|
||||||
"minecraft:inventory": {
|
|
||||||
"container_type": "minecart_chest",
|
|
||||||
"inventory_size": 27,
|
|
||||||
"can_be_siphoned_from": true
|
|
||||||
},
|
|
||||||
"minecraft:is_stackable": {
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 60.0,
|
|
||||||
"max_dropped_ticks": 20,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
},
|
|
||||||
"conditional_values": [
|
|
||||||
{
|
|
||||||
"max_optimized_distance": 0.0,
|
|
||||||
"max_dropped_ticks": 0,
|
|
||||||
"conditional_values": [
|
|
||||||
{ "test": "is_moving", "subject": "self", "operator": "==", "value": true}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,246 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:chicken",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:chicken_baby": {
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value":0.5
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": [
|
|
||||||
"wheat_seeds",
|
|
||||||
"beetroot_seeds",
|
|
||||||
"melon_seeds",
|
|
||||||
"pumpkin_seeds"
|
|
||||||
],
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1.1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:chicken_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_bred": "Math.Random(1,7)",
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/chicken.json"
|
|
||||||
},
|
|
||||||
"minecraft:breedable": {
|
|
||||||
"require_tame": false,
|
|
||||||
"breeds_with": {
|
|
||||||
"mate_type": "minecraft:chicken",
|
|
||||||
"baby_type": "minecraft:chicken",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"breed_items": [
|
|
||||||
"wheat_seeds",
|
|
||||||
"beetroot_seeds",
|
|
||||||
"melon_seeds",
|
|
||||||
"pumpkin_seeds"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"zombie"
|
|
||||||
],
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 0.4, 0.0 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:spawn_entity": {
|
|
||||||
"entities": {
|
|
||||||
"min_wait_time": 300,
|
|
||||||
"max_wait_time": 600,
|
|
||||||
"spawn_sound": "plop",
|
|
||||||
"spawn_item": "egg",
|
|
||||||
"filters": {
|
|
||||||
"test": "rider_count", "subject": "self", "operator": "==", "value": 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "chicken", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.6,
|
|
||||||
"height": 0.8
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 4,
|
|
||||||
"max": 4
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.25
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "fall",
|
|
||||||
"deals_damage": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:balloonable": {
|
|
||||||
"mass": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.5
|
|
||||||
},
|
|
||||||
"minecraft:behavior.mount_pathing": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 1.5,
|
|
||||||
"target_dist": 0.0,
|
|
||||||
"track_target": true
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.0,
|
|
||||||
"items": [
|
|
||||||
"wheat_seeds",
|
|
||||||
"beetroot_seeds",
|
|
||||||
"melon_seeds",
|
|
||||||
"pumpkin_seeds"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 7,
|
|
||||||
"look_distance": 6.0,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 8
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"from_egg": {
|
|
||||||
"add": { "component_groups": [ "minecraft:chicken_baby" ] }
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 95,
|
|
||||||
"trigger": "minecraft:spawn_adult"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 5,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:chicken_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:chicken_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:chicken_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:chicken_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:spawn_adult": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:chicken_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,108 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:command_block_minecart",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:command_block_active": {
|
|
||||||
"minecraft:rail_sensor": {
|
|
||||||
"check_block_types": true,
|
|
||||||
"eject_on_activate": false,
|
|
||||||
"eject_on_deactivate": false,
|
|
||||||
"tick_command_block_on_activate": true,
|
|
||||||
"tick_command_block_on_deactivate": false,
|
|
||||||
"on_deactivate": {
|
|
||||||
"event": "minecraft:command_block_deactivate"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:command_block_inactive": {
|
|
||||||
"minecraft:rail_sensor": {
|
|
||||||
"check_block_types": false,
|
|
||||||
"eject_on_activate": false,
|
|
||||||
"eject_on_deactivate": false,
|
|
||||||
"tick_command_block_on_activate": true,
|
|
||||||
"tick_command_block_on_deactivate": false,
|
|
||||||
"on_activate": {
|
|
||||||
"event": "minecraft:command_block_activate"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "minecart", "inanimate" ]
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.98,
|
|
||||||
"height": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:rail_movement": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:inventory": {
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 60.0,
|
|
||||||
"max_dropped_ticks": 20,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
},
|
|
||||||
"conditional_values": [
|
|
||||||
{
|
|
||||||
"max_optimized_distance": 0.0,
|
|
||||||
"max_dropped_ticks": 0,
|
|
||||||
"conditional_values": [
|
|
||||||
{ "test": "is_moving", "subject": "self", "operator": "==", "value": true}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:command_block_inactive"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:command_block_activate": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:command_block_inactive"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:command_block_active"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:command_block_deactivate": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:command_block_active"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:command_block_inactive"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,253 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:cow",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:cow_baby": {
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value":0.5
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": "wheat",
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 1.1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:cow_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_bred": "Math.Random(1,7)",
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/cow.json"
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:breedable": {
|
|
||||||
"require_tame": false,
|
|
||||||
"breed_items": "wheat",
|
|
||||||
"breeds_with": {
|
|
||||||
"mate_type": "minecraft:cow",
|
|
||||||
"baby_type": "minecraft:cow",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:interact": {
|
|
||||||
"interactions": [
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test": "has_equipment", "domain": "hand", "subject": "other", "value": "bucket:0"}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"transform_to_item": "bucket:1",
|
|
||||||
"play_sounds": "milk",
|
|
||||||
"interact_text": "action.interact.milk"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "cow", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"avoid_water": true,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.9,
|
|
||||||
"height": 1.3
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 10,
|
|
||||||
"max": 10
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "in_lava",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.25
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.25
|
|
||||||
},
|
|
||||||
"minecraft:behavior.mount_pathing": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 1.5,
|
|
||||||
"target_dist": 0.0,
|
|
||||||
"track_target": true
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.25,
|
|
||||||
"items": [
|
|
||||||
"wheat"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1.1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 0.8
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 7,
|
|
||||||
"look_distance": 6.0,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 9
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:balloonable": {
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"zombie"
|
|
||||||
],
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 1.105, 0.0 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 95,
|
|
||||||
"trigger": "minecraft:spawn_adult"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 5,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cow_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cow_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:entity_transformed": {
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cow_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cow_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cow_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:spawn_adult": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cow_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,309 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:creeper",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:exploding": {
|
|
||||||
"minecraft:explode": {
|
|
||||||
"fuse_length": 1.5,
|
|
||||||
"fuse_lit": true,
|
|
||||||
"power": 3,
|
|
||||||
"causes_fire": false,
|
|
||||||
"destroy_affected_by_griefing": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:charged_creeper": {
|
|
||||||
"minecraft:is_charged": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:charged_exploding": {
|
|
||||||
"minecraft:explode": {
|
|
||||||
"fuse_length": 1.5,
|
|
||||||
"fuse_lit": true,
|
|
||||||
"power": 6,
|
|
||||||
"causes_fire": false,
|
|
||||||
"destroy_affected_by_griefing": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:forced_exploding": {
|
|
||||||
"minecraft:target_nearby_sensor": {
|
|
||||||
},
|
|
||||||
"minecraft:explode": {
|
|
||||||
"fuse_length": 1.5,
|
|
||||||
"fuse_lit": true,
|
|
||||||
"power": 3,
|
|
||||||
"causes_fire": false,
|
|
||||||
"destroy_affected_by_griefing": true
|
|
||||||
},
|
|
||||||
"minecraft:on_target_escape": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:forced_charged_exploding": {
|
|
||||||
"minecraft:target_nearby_sensor": {
|
|
||||||
},
|
|
||||||
"minecraft:explode": {
|
|
||||||
"fuse_length": 1.5,
|
|
||||||
"fuse_lit": true,
|
|
||||||
"power": 6,
|
|
||||||
"causes_fire": false,
|
|
||||||
"destroy_affected_by_griefing": true
|
|
||||||
},
|
|
||||||
"minecraft:on_target_escape": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? 5 : 0"
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "creeper", "monster", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.6,
|
|
||||||
"height": 1.8
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.2
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/creeper.json"
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 20,
|
|
||||||
"max": 20
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 3
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"on_damage": {
|
|
||||||
"filters": { "test": "is_family", "subject": "other", "value": "lightning"
|
|
||||||
},
|
|
||||||
"event": "minecraft:become_charged"
|
|
||||||
},
|
|
||||||
"deals_damage": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:target_nearby_sensor": {
|
|
||||||
"inside_range": 2.5,
|
|
||||||
"outside_range": 6.0,
|
|
||||||
"must_see": true,
|
|
||||||
"on_inside_range": {
|
|
||||||
"event": "minecraft:start_exploding",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"on_outside_range": {
|
|
||||||
"event": "minecraft:stop_exploding",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"on_vision_lost_inside_range": {
|
|
||||||
"event": "minecraft:stop_exploding",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:interact": {
|
|
||||||
"interactions": {
|
|
||||||
"on_interact": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "player" },
|
|
||||||
{ "test": "has_equipment", "domain": "hand", "subject": "other", "value": "flint_and_steel" },
|
|
||||||
{ "test": "has_component", "operator": "!=", "value": "minecraft:explode" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:start_exploding_forced",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"hurt_item": 1,
|
|
||||||
"swing": true,
|
|
||||||
"play_sounds": "ignite",
|
|
||||||
"interact_text": "action.interact.creeper"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.swell": {
|
|
||||||
"start_distance": 2.5,
|
|
||||||
"stop_distance": 6.0,
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.25,
|
|
||||||
"track_target": false,
|
|
||||||
"reach_multiplier": 0.0 // this prevents creepers from ocasionally performing melee attacks while using this goal to chase
|
|
||||||
},
|
|
||||||
"minecraft:behavior.avoid_mob_type": {
|
|
||||||
"priority": 3,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "ocelot"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "cat"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 6,
|
|
||||||
"sprint_speed_multiplier": 1.2
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 6,
|
|
||||||
"look_distance": 8
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 6
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 1,
|
|
||||||
"must_see": true,
|
|
||||||
"must_see_forget_duration": 3.0,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "player"
|
|
||||||
},
|
|
||||||
"max_dist": 16
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:on_target_escape": {
|
|
||||||
"event": "minecraft:stop_exploding",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:start_exploding_forced": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "has_component",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "minecraft:is_charged"
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:forced_exploding"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "has_component",
|
|
||||||
"value": "minecraft:is_charged"
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:forced_charged_exploding"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:start_exploding": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "has_component",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "minecraft:is_charged"
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:exploding"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "has_component",
|
|
||||||
"value": "minecraft:is_charged"
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:charged_exploding"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:stop_exploding": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:exploding"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:become_charged": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:exploding"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:charged_creeper"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,436 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:dolphin",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"dolphin_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/dolphin.json"
|
|
||||||
},
|
|
||||||
"minecraft:bribeable": {
|
|
||||||
"bribe_items": [ "fish", "salmon" ]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 2,
|
|
||||||
"track_target": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dolphin_baby": {
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 0.65
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": [ "fish", "salmon" ],
|
|
||||||
"grow_up": {
|
|
||||||
"event": "ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.25
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dolphin_angry": {
|
|
||||||
"minecraft:angry": {
|
|
||||||
"duration": 25,
|
|
||||||
"broadcast_anger": true,
|
|
||||||
"broadcast_range": 16,
|
|
||||||
"calm_event": {
|
|
||||||
"event": "on_calm",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:on_target_acquired": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dolphin_dried": {
|
|
||||||
"minecraft:damage_over_time": {
|
|
||||||
"damage_per_hurt": 1,
|
|
||||||
"time_between_hurt": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dolphin_swimming_navigation": {
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 8,
|
|
||||||
"look_distance": 6
|
|
||||||
},
|
|
||||||
"minecraft:navigation.generic": {
|
|
||||||
"is_amphibious": true,
|
|
||||||
"can_path_over_water": false,
|
|
||||||
"can_swim": true,
|
|
||||||
"can_walk": false,
|
|
||||||
"can_breach": true,
|
|
||||||
"can_sink": false
|
|
||||||
},
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "on_ground",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "in_water",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "navigation_on_land"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dolphin_on_land": {
|
|
||||||
"minecraft:navigation.generic": {
|
|
||||||
"is_amphibious": true,
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"can_swim": true,
|
|
||||||
"can_walk": true,
|
|
||||||
"can_breach": false,
|
|
||||||
"can_jump": false
|
|
||||||
},
|
|
||||||
"minecraft:drying_out_timer": {
|
|
||||||
"total_time": 120,
|
|
||||||
"water_bottle_refill_time": 0,
|
|
||||||
"dried_out_event": {
|
|
||||||
"event": "dried_out"
|
|
||||||
},
|
|
||||||
"stopped_drying_out_event": {
|
|
||||||
"event": "stop_dryingout"
|
|
||||||
},
|
|
||||||
"recover_after_dried_out_event": {
|
|
||||||
"event": "recover_after_dried_out"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dolphin_on_land_in_rain": {
|
|
||||||
"minecraft:navigation.generic": {
|
|
||||||
"is_amphibious": true,
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"can_swim": true,
|
|
||||||
"can_walk": true,
|
|
||||||
"can_breach": false,
|
|
||||||
"can_jump": false
|
|
||||||
},
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "in_water",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"event": "navigation_off_land"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "in_water_or_rain",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"event": "start_dryingout"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "dolphin", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.9,
|
|
||||||
"height": 0.6
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 10,
|
|
||||||
"max": 10
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:follow_range": {
|
|
||||||
"value": 48,
|
|
||||||
"max": 48
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 240,
|
|
||||||
"suffocate_time": 0,
|
|
||||||
"breathes_air": true,
|
|
||||||
"breathes_water": false,
|
|
||||||
"generates_bubbles": false
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 3
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.1
|
|
||||||
},
|
|
||||||
"minecraft:navigation.generic": {
|
|
||||||
"is_amphibious": true,
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"can_swim": true,
|
|
||||||
"can_walk": false,
|
|
||||||
"can_breach": true,
|
|
||||||
"can_sink": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:underwater_movement": {
|
|
||||||
"value": 0.15
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
"jump_power": 0.6
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:behavior.swim_with_entity": {
|
|
||||||
"priority": 4,
|
|
||||||
"success_rate": 0.1,
|
|
||||||
"chance_to_stop": 0.0333,
|
|
||||||
"state_check_interval": 0.5,
|
|
||||||
"catch_up_threshold": 12.0,
|
|
||||||
"match_direction_threshold": 2.0,
|
|
||||||
"catch_up_multiplier": 2.5,
|
|
||||||
"speed_multiplier": 1.5,
|
|
||||||
"search_range": 20.0,
|
|
||||||
"stop_distance": 5.0,
|
|
||||||
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "is_family", "subject": "other", "value": "player" }
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_swim": {
|
|
||||||
"priority": 5,
|
|
||||||
"interval": 0,
|
|
||||||
"xz_dist": 20
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_breach": {
|
|
||||||
"priority": 6,
|
|
||||||
"interval": 50,
|
|
||||||
"xz_dist": 6,
|
|
||||||
"cooldown_time": 2.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 7
|
|
||||||
},
|
|
||||||
"minecraft:behavior.avoid_mob_type": {
|
|
||||||
"priority": 2,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "guardian_elder"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "guardian"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 8,
|
|
||||||
"walk_speed_multiplier": 1.0,
|
|
||||||
"sprint_speed_multiplier": 1.0
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"probability_per_strength": 0.14
|
|
||||||
},
|
|
||||||
"minecraft:behavior.find_underwater_treasure": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 2.0,
|
|
||||||
"search_range": 30,
|
|
||||||
"stop_distance": 50
|
|
||||||
},
|
|
||||||
"minecraft:behavior.move_to_water": {
|
|
||||||
"priority": 1,
|
|
||||||
"search_range": 15,
|
|
||||||
"search_height": 5
|
|
||||||
},
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
"minecraft:flocking": {
|
|
||||||
"in_water": false,
|
|
||||||
"match_variants": false,
|
|
||||||
"use_center_of_mass": false,
|
|
||||||
"low_flock_limit": 4,
|
|
||||||
"high_flock_limit": 8,
|
|
||||||
"goal_weight": 2.0,
|
|
||||||
"loner_chance": 0.1,
|
|
||||||
"influence_radius": 6.0,
|
|
||||||
"breach_influence": 0.0,
|
|
||||||
"separation_weight": 1.75,
|
|
||||||
"separation_threshold": 3.0,
|
|
||||||
"cohesion_weight": 1.85,
|
|
||||||
"cohesion_threshold": 6.5,
|
|
||||||
"innner_cohesion_threshold": 3.5,
|
|
||||||
"min_height": 4.0,
|
|
||||||
"max_height": 4.0,
|
|
||||||
"block_distance": 1.0,
|
|
||||||
"block_weight": 0.0
|
|
||||||
},
|
|
||||||
"minecraft:on_target_acquired": {
|
|
||||||
"event": "become_angry",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:on_target_escape": {
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 90,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"dolphin_adult",
|
|
||||||
"dolphin_swimming_navigation"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 10,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"dolphin_baby",
|
|
||||||
"dolphin_swimming_navigation"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"dolphin_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"dolphin_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"become_angry": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"dolphin_angry"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"on_calm": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"dolphin_angry"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"stop_dryingout": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"dolphin_on_land",
|
|
||||||
"dolphin_dried"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "dolphin_on_land_in_rain" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"start_dryingout": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "dolphin_on_land_in_rain" ]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"dolphin_on_land"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dried_out": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "dolphin_dried" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"recover_after_dried_out": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "dolphin_dried" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"navigation_on_land": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "dolphin_on_land" ]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "dolphin_swimming_navigation" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"navigation_off_land": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "dolphin_swimming_navigation" ]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"dolphin_on_land_in_rain",
|
|
||||||
"dolphin_on_land",
|
|
||||||
"dolphin_dried"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,476 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:donkey",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:donkey_baby": {
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:scale_by_age": {
|
|
||||||
"start_scale": 0.5,
|
|
||||||
"end_scale": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": [
|
|
||||||
{
|
|
||||||
"item": "wheat",
|
|
||||||
"growth": 0.016667
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "sugar",
|
|
||||||
"growth": 0.025
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "hay_block",
|
|
||||||
"growth": 0.15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "apple",
|
|
||||||
"growth": 0.05
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_carrot",
|
|
||||||
"growth": 0.05
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_apple",
|
|
||||||
"growth": 0.2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "appleEnchanted",
|
|
||||||
"growth": 0.2
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:donkey_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_bred": "Math.Random(1,7)",
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/horse.json"
|
|
||||||
},
|
|
||||||
"minecraft:behavior.run_around_like_crazy": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:donkey_wild": {
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"player",
|
|
||||||
"zombie"
|
|
||||||
],
|
|
||||||
"interact_text": "action.interact.mount",
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 0.925, -0.2 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.mount_pathing": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 1.5,
|
|
||||||
"target_dist": 0.0,
|
|
||||||
"track_target": true
|
|
||||||
},
|
|
||||||
"minecraft:tamemount": {
|
|
||||||
"min_temper": 0,
|
|
||||||
"max_temper": 100,
|
|
||||||
"feed_text": "action.interact.feed",
|
|
||||||
"ride_text": "action.interact.mount",
|
|
||||||
"feed_items": [
|
|
||||||
{
|
|
||||||
"item": "wheat",
|
|
||||||
"temper_mod": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "sugar",
|
|
||||||
"temper_mod": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "apple",
|
|
||||||
"temper_mod": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_carrot",
|
|
||||||
"temper_mod": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_apple",
|
|
||||||
"temper_mod": 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "appleEnchanted",
|
|
||||||
"temper_mod": 10
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"auto_reject_items": [
|
|
||||||
{
|
|
||||||
"item": "horsearmorleather"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "horsearmoriron"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "horsearmorgold"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "horsearmordiamond"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "saddle"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tame_event": {
|
|
||||||
"event": "minecraft:on_tame",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:donkey_tamed": {
|
|
||||||
"minecraft:is_tamed": {
|
|
||||||
},
|
|
||||||
"minecraft:equippable": {
|
|
||||||
"slots": [
|
|
||||||
{
|
|
||||||
"slot": 0,
|
|
||||||
"item": "saddle",
|
|
||||||
"accepted_items": ["saddle"],
|
|
||||||
"on_equip": {
|
|
||||||
"event": "minecraft:donkey_saddled"
|
|
||||||
},
|
|
||||||
"on_unequip": {
|
|
||||||
"event": "minecraft:donkey_unsaddled"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"crouching_skip_interact": true,
|
|
||||||
"family_types": [
|
|
||||||
"player"
|
|
||||||
],
|
|
||||||
"interact_text": "action.interact.ride.horse",
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 0.925, -0.2 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.player_ride_tamed": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:inventory": {
|
|
||||||
"inventory_size": 16,
|
|
||||||
"container_type": "horse"
|
|
||||||
},
|
|
||||||
"minecraft:breedable": {
|
|
||||||
"require_tame": true,
|
|
||||||
"inherit_tamed": false,
|
|
||||||
"breeds_with": [
|
|
||||||
{
|
|
||||||
"mate_type": "minecraft:donkey",
|
|
||||||
"baby_type": "minecraft:donkey",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"mate_type": "minecraft:horse",
|
|
||||||
"baby_type": "minecraft:mule",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"breed_items": [
|
|
||||||
"golden_carrot",
|
|
||||||
"golden_apple",
|
|
||||||
"appleEnchanted"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1.2,
|
|
||||||
"items": [
|
|
||||||
"apple",
|
|
||||||
"carrot",
|
|
||||||
"golden_apple",
|
|
||||||
"appleEnchanted",
|
|
||||||
"golden_carrot",
|
|
||||||
"carrotOnAStick",
|
|
||||||
"hay_block",
|
|
||||||
"sugar",
|
|
||||||
"bread",
|
|
||||||
"wheat"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:donkey_unchested": {
|
|
||||||
"minecraft:interact": {
|
|
||||||
"interactions": [
|
|
||||||
{
|
|
||||||
"play_sounds": "armor.equip_generic",
|
|
||||||
"on_interact": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test" : "has_equipment", "domain": "hand","subject" : "other", "value" : "chest"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:on_chest",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"interact_text": "action.interact.attachchest"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:donkey_chested": {
|
|
||||||
"minecraft:is_chested": {
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:donkey_saddled": {
|
|
||||||
"minecraft:is_saddled": {
|
|
||||||
},
|
|
||||||
"minecraft:input_ground_controlled": {
|
|
||||||
},
|
|
||||||
"minecraft:can_power_jump": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "donkey", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 1.4,
|
|
||||||
"height": 1.6
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": {
|
|
||||||
"range_min": 15,
|
|
||||||
"range_max": 30
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.175
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"avoid_water": true,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:horse.jump_strength": {
|
|
||||||
"value": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:balloonable": {
|
|
||||||
},
|
|
||||||
"minecraft:healable": {
|
|
||||||
"items": [
|
|
||||||
{
|
|
||||||
"item": "wheat",
|
|
||||||
"heal_amount": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "sugar",
|
|
||||||
"heal_amount": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "hay_block",
|
|
||||||
"heal_amount": 20
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "apple",
|
|
||||||
"heal_amount": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_carrot",
|
|
||||||
"heal_amount": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_apple",
|
|
||||||
"heal_amount": 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "appleEnchanted",
|
|
||||||
"heal_amount": 10
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 7,
|
|
||||||
"look_distance": 6.0,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 8
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 80,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:donkey_adult",
|
|
||||||
"minecraft:donkey_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 20,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:donkey_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:donkey_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:on_tame": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:donkey_wild"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:donkey_tamed",
|
|
||||||
"minecraft:donkey_unchested"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:donkey_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:donkey_adult",
|
|
||||||
"minecraft:donkey_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:on_chest": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:donkey_unchested"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:donkey_chested"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:donkey_saddled": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:donkey_saddled"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:donkey_unsaddled": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:donkey_saddled"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,55 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:dragon_fireball",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": false,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.31,
|
|
||||||
"height": 0.31
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:projectile": {
|
|
||||||
"on_hit": {
|
|
||||||
"spawn_aoe_cloud": {
|
|
||||||
"radius": 6.0,
|
|
||||||
"radius_on_use": 0,
|
|
||||||
"potion": 23,
|
|
||||||
"particle": "dragonbreath",
|
|
||||||
"duration": 120,
|
|
||||||
"color": [ 220, 0, 239 ],
|
|
||||||
"affect_owner": false,
|
|
||||||
"reapplication_delay": 20
|
|
||||||
},
|
|
||||||
"remove_on_hit": { }
|
|
||||||
},
|
|
||||||
"power": 1.3,
|
|
||||||
"gravity": 0.00,
|
|
||||||
"inertia": 1,
|
|
||||||
"anchor": 2,
|
|
||||||
"offset": [ 0, 0.5, 0 ],
|
|
||||||
"semi_random_diff_damage": true,
|
|
||||||
"uncertainty_base": 10.0,
|
|
||||||
"reflect_on_hurt": true,
|
|
||||||
"hit_sound": "explode"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 80.0,
|
|
||||||
"max_dropped_ticks": 7,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,626 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.17.20",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:drowned",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:baby_drowned": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? 12 + (query.equipment_count * Math.Random(1,3)) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:is_baby": {},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.25
|
|
||||||
},
|
|
||||||
"minecraft:underwater_movement": {
|
|
||||||
"value": 0.08
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:adult_drowned": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? 5 + (query.equipment_count * Math.Random(1,3)) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/drowned.json"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mode_switcher": {
|
|
||||||
"minecraft:target_nearby_sensor": {
|
|
||||||
"inside_range": 3.0,
|
|
||||||
"outside_range": 5.0,
|
|
||||||
"on_inside_range": {
|
|
||||||
"event": "minecraft:switch_to_melee",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"on_outside_range": {
|
|
||||||
"event": "minecraft:switch_to_ranged",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:equipment": {
|
|
||||||
"table": "loot_tables/entities/drowned_ranged_equipment.json",
|
|
||||||
"slot_drop_chance": [
|
|
||||||
{
|
|
||||||
"slot": "slot.weapon.offhand",
|
|
||||||
"drop_chance": 1.0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ranged_mode": {
|
|
||||||
"minecraft:shooter": {
|
|
||||||
"def": "minecraft:thrown_trident"
|
|
||||||
},
|
|
||||||
"minecraft:behavior.ranged_attack": {
|
|
||||||
"priority": 3,
|
|
||||||
"attack_interval_min": 1.0,
|
|
||||||
"attack_interval_max": 3.0,
|
|
||||||
"attack_radius": 10.0,
|
|
||||||
"swing": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:melee_mode": {
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 3
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 1,
|
|
||||||
"track_target": false,
|
|
||||||
"require_complete_path": true
|
|
||||||
},
|
|
||||||
"minecraft:equipment": {
|
|
||||||
"table": "loot_tables/entities/drowned_equipment.json",
|
|
||||||
"slot_drop_chance": [
|
|
||||||
{
|
|
||||||
"slot": "slot.weapon.offhand",
|
|
||||||
"drop_chance": 1.0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:hunter_mode": {
|
|
||||||
"minecraft:navigation.generic": {
|
|
||||||
"is_amphibious": true,
|
|
||||||
"can_path_over_water": false,
|
|
||||||
"can_break_doors": true,
|
|
||||||
"can_swim": true,
|
|
||||||
"can_walk": true,
|
|
||||||
"avoid_sun": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:wander_mode": {
|
|
||||||
"minecraft:navigation.generic": {
|
|
||||||
"is_amphibious": true,
|
|
||||||
"can_path_over_water": false,
|
|
||||||
"can_break_doors": true,
|
|
||||||
"can_swim": false,
|
|
||||||
"can_walk": true,
|
|
||||||
"avoid_sun": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
|
|
||||||
// Zombie Components
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "drowned", "zombie", "undead", "monster", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:equip_item": {
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.6,
|
|
||||||
"height": 1.9
|
|
||||||
},
|
|
||||||
"minecraft:annotation.break_door": {
|
|
||||||
},
|
|
||||||
"minecraft:underwater_movement": {
|
|
||||||
"value": 0.06
|
|
||||||
},
|
|
||||||
"minecraft:movement.generic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 20,
|
|
||||||
"max": 20
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.23
|
|
||||||
},
|
|
||||||
"minecraft:burns_in_daylight": {
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0,
|
|
||||||
"breathes_air": true,
|
|
||||||
"breathes_water": true
|
|
||||||
},
|
|
||||||
"minecraft:navigation.generic": {
|
|
||||||
"is_amphibious": true,
|
|
||||||
"can_path_over_water": false,
|
|
||||||
"can_break_doors": true,
|
|
||||||
"can_swim": false,
|
|
||||||
"can_walk": true,
|
|
||||||
"avoid_sun": true
|
|
||||||
},
|
|
||||||
"minecraft:shareables": {
|
|
||||||
"items": [
|
|
||||||
{
|
|
||||||
"item": "minecraft:nautilus_shell",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:trident",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:netherite_sword",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:diamond_sword",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:iron_sword",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:stone_sword",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:golden_sword",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:wooden_sword",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:netherite_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:diamond_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:iron_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:chainmail_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:golden_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:leather_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:turtle_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:skull:0",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:skull:1",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:carved_pumpkin",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:netherite_chestplate",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:diamond_chestplate",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:iron_chestplate",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:chainmail_chestplate",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:golden_chestplate",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:leather_chestplate",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:netherite_leggings",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:diamond_leggings",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:iron_leggings",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:chainmail_leggings",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:golden_leggings",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:leather_leggings",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:netherite_boots",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:diamond_boots",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:iron_boots",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:chainmail_boots",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:golden_boots",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:leather_boots",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 5
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.flee_sun": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.equip_item": {
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
"minecraft:behavior.stomp_turtle_egg": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1,
|
|
||||||
"search_range": 10,
|
|
||||||
"search_height": 2,
|
|
||||||
"goal_radius": 1.14,
|
|
||||||
"interval": 20
|
|
||||||
},
|
|
||||||
"minecraft:behavior.pickup_items": {
|
|
||||||
"priority": 6,
|
|
||||||
"max_dist": 3,
|
|
||||||
"goal_radius": 2,
|
|
||||||
"speed_multiplier": 1.0,
|
|
||||||
"pickup_based_on_chance": true,
|
|
||||||
"can_pickup_any_item": true,
|
|
||||||
"excluded_items": [
|
|
||||||
"minecraft:glow_ink_sac"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 7,
|
|
||||||
"speed_multiplier": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 8,
|
|
||||||
"look_distance": 6,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 9
|
|
||||||
},
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 2,
|
|
||||||
"reselect_targets": true,
|
|
||||||
"must_see": true,
|
|
||||||
"within_radius": 12.0,
|
|
||||||
"must_see_forget_duration": 17.0,
|
|
||||||
"persist_time": 0.5,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"any_of": [
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "player" },
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "snowgolem" },
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "irongolem" },
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "axolotl" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"any_of": [
|
|
||||||
{ "test": "in_water", "subject": "other", "value": true },
|
|
||||||
{ "test": "is_daytime", "value": false }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 20
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"any_of": [
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "villager" },
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "wandering_trader" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"any_of": [
|
|
||||||
{ "test": "in_water", "subject": "other", "value": true },
|
|
||||||
{ "test": "is_daytime", "value": false }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 20,
|
|
||||||
"must_see": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "baby_turtle" },
|
|
||||||
{ "test": "in_water", "subject": "other", "operator": "!=", "value": true }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 20
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:on_target_acquired": {
|
|
||||||
"event": "minecraft:has_target",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:on_target_escape": {
|
|
||||||
"event": "minecraft:lost_target",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 15,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mode_switcher",
|
|
||||||
"minecraft:ranged_mode",
|
|
||||||
"minecraft:adult_drowned"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 85,
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 95,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:melee_mode",
|
|
||||||
"minecraft:adult_drowned"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 5,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:melee_mode",
|
|
||||||
"minecraft:baby_drowned"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:as_baby": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:melee_mode",
|
|
||||||
"minecraft:baby_drowned"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:as_adult": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:melee_mode",
|
|
||||||
"minecraft:adult_drowned"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:switch_to_melee": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:ranged_mode"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:melee_mode"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:switch_to_ranged": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:melee_mode"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:ranged_mode"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:has_target": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:wander_mode"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:hunter_mode"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:lost_target": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:hunter_mode"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:wander_mode"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,57 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:egg",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.25,
|
|
||||||
"height": 0.25
|
|
||||||
},
|
|
||||||
"minecraft:projectile": {
|
|
||||||
"on_hit": {
|
|
||||||
"impact_damage": {
|
|
||||||
"damage": 0,
|
|
||||||
"knockback": true,
|
|
||||||
"destroy_on_hit": true
|
|
||||||
},
|
|
||||||
"spawn_chance": {
|
|
||||||
"first_spawn_chance": 8,
|
|
||||||
"second_spawn_chance": 32,
|
|
||||||
"first_spawn_count": 1,
|
|
||||||
"second_spawn_count": 4,
|
|
||||||
"spawn_definition": "minecraft:chicken",
|
|
||||||
"spawn_baby": true
|
|
||||||
},
|
|
||||||
"remove_on_hit": {},
|
|
||||||
"particle_on_hit": {
|
|
||||||
"particle_type": "iconcrack",
|
|
||||||
"num_particles": 6,
|
|
||||||
"on_entity_hit": true,
|
|
||||||
"on_other_hit": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"power": 1.5,
|
|
||||||
"gravity": 0.03,
|
|
||||||
"angle_offset": 0.0
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 80.0,
|
|
||||||
"max_dropped_ticks": 7,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,118 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:elder_guardian",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? 10 : 0"
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 1.99,
|
|
||||||
"height": 1.99
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/elder_guardian.json"
|
|
||||||
},
|
|
||||||
"minecraft:navigation.generic": {
|
|
||||||
"is_amphibious": true,
|
|
||||||
"can_path_over_water": false,
|
|
||||||
"can_swim": true,
|
|
||||||
"can_walk": false,
|
|
||||||
"can_breach": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.sway": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 80,
|
|
||||||
"max": 80
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.3
|
|
||||||
},
|
|
||||||
"minecraft:underwater_movement": {
|
|
||||||
"value": 0.3
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 5
|
|
||||||
},
|
|
||||||
"minecraft:follow_range": {
|
|
||||||
"value": 16,
|
|
||||||
"max": 16
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"breathes_water": true
|
|
||||||
},
|
|
||||||
"minecraft:home": {
|
|
||||||
"restriction_radius": 16
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 1,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "squid"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "axolotl"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 16
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"attack_interval_min": 1.0,
|
|
||||||
"must_see": true
|
|
||||||
},
|
|
||||||
"minecraft:behavior.guardian_attack": {
|
|
||||||
"priority": 4
|
|
||||||
},
|
|
||||||
"minecraft:behavior.move_towards_home_restriction": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_swim": {
|
|
||||||
"priority": 7,
|
|
||||||
"speed_multiplier": 0.5,
|
|
||||||
"avoid_surface": false
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 8,
|
|
||||||
"look_distance": 12.0,
|
|
||||||
"probability": 0.01
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 9
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "guardian_elder", "monster", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,60 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:ender_crystal",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"crystal_exploding": {
|
|
||||||
"minecraft:explode": {
|
|
||||||
"fuse_length": 0,
|
|
||||||
"fuse_lit": true,
|
|
||||||
"power": 6,
|
|
||||||
"causes_fire": false,
|
|
||||||
"destroy_affected_by_griefing": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.98,
|
|
||||||
"height": 0.98
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 1,
|
|
||||||
"max": 1
|
|
||||||
},
|
|
||||||
"minecraft:fire_immune": true,
|
|
||||||
"minecraft:on_hurt": {
|
|
||||||
"event": "minecraft:crystal_explode",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:crystal_explode": {
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"crystal_exploding"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,155 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.13.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:ender_dragon",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"dragon_sitting": {
|
|
||||||
"minecraft:behavior.dragonlanding": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.dragonflaming": {
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.dragonscanning": {
|
|
||||||
"priority": 2
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dragon_flying": {
|
|
||||||
"minecraft:behavior.dragontakeoff": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.dragonchargeplayer": {
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.dragonstrafeplayer": {
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.dragonholdingpattern": {
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
"minecraft:shooter": {
|
|
||||||
"type": "dragonfireball",
|
|
||||||
"def": "minecraft:dragon_fireball"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"dragon_death": {
|
|
||||||
"minecraft:behavior.dragondeath": {
|
|
||||||
"priority": 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "dragon", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 200,
|
|
||||||
"max": 200
|
|
||||||
},
|
|
||||||
"minecraft:boss": {
|
|
||||||
"should_darken_sky": false,
|
|
||||||
"hud_range": 125
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 13,
|
|
||||||
"height": 4
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.3
|
|
||||||
},
|
|
||||||
"minecraft:fire_immune": true,
|
|
||||||
"minecraft:knockback_resistance": {
|
|
||||||
"value": 100,
|
|
||||||
"max": 100
|
|
||||||
},
|
|
||||||
"minecraft:flying_speed": {
|
|
||||||
"value": 0.6
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 3
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "fall",
|
|
||||||
"deals_damage": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:on_start_landing": {
|
|
||||||
"event": "minecraft:start_land",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:on_start_takeoff": {
|
|
||||||
"event": "minecraft:start_fly",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:on_death": {
|
|
||||||
"event": "minecraft:start_death",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:persistent": {
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
"has_gravity": false,
|
|
||||||
"has_collision": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"dragon_flying"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:start_land": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"dragon_flying"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"dragon_sitting"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:start_fly": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"dragon_sitting"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"dragon_flying"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:start_death": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"dragon_sitting",
|
|
||||||
"dragon_flying"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"dragon_death"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:ender_pearl",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": false,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:no_spawn": {
|
|
||||||
"minecraft:projectile": {
|
|
||||||
"on_hit": {
|
|
||||||
"teleport_owner": { },
|
|
||||||
"remove_on_hit": { }
|
|
||||||
},
|
|
||||||
"power": 1.5,
|
|
||||||
"gravity": 0.025,
|
|
||||||
"angle_offset": 0.0,
|
|
||||||
"inertia": 1,
|
|
||||||
"liquid_inertia": 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.25,
|
|
||||||
"height": 0.25
|
|
||||||
},
|
|
||||||
"minecraft:projectile": {
|
|
||||||
"on_hit": {
|
|
||||||
"teleport_owner": { },
|
|
||||||
"spawn_chance": {
|
|
||||||
"first_spawn_percent_chance": 5.0,
|
|
||||||
"first_spawn_count": 1,
|
|
||||||
"spawn_definition": "minecraft:endermite"
|
|
||||||
},
|
|
||||||
"remove_on_hit": { }
|
|
||||||
},
|
|
||||||
"power": 1.5,
|
|
||||||
"gravity": 0.025,
|
|
||||||
"angle_offset": 0.0,
|
|
||||||
"inertia": 1,
|
|
||||||
"liquid_inertia": 1
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 80.0,
|
|
||||||
"max_dropped_ticks": 7,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"filters": {"test": "is_game_rule", "domain": "domobspawning", "value": false},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:no_spawn" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,218 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:enderman",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:enderman_calm": {
|
|
||||||
"minecraft:on_target_acquired": {
|
|
||||||
"event": "minecraft:become_angry",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.3
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:enderman_angry": {
|
|
||||||
"minecraft:angry": {
|
|
||||||
"duration": 25,
|
|
||||||
"calm_event": {
|
|
||||||
"event": "minecraft:on_calm",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.45
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 2
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? 5 : 0"
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "enderman", "monster", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/enderman.json"
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 40,
|
|
||||||
"max": 40
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_contact_with_water", "operator": "==", "value": true },
|
|
||||||
"cause": "drowning",
|
|
||||||
"damage_per_tick": 1
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 7
|
|
||||||
},
|
|
||||||
"minecraft:follow_range": {
|
|
||||||
"value": 32,
|
|
||||||
"max": 32
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.6,
|
|
||||||
"height": 2.9
|
|
||||||
},
|
|
||||||
"minecraft:teleport": {
|
|
||||||
"random_teleports": true,
|
|
||||||
"max_random_teleport_time": 30,
|
|
||||||
"random_teleport_cube": [ 32, 32, 32 ],
|
|
||||||
"target_distance": 16,
|
|
||||||
"target_teleport_chance": 0.05,
|
|
||||||
"light_teleport_chance": 0.05
|
|
||||||
},
|
|
||||||
"minecraft:lookat": {
|
|
||||||
"search_radius": 64.0,
|
|
||||||
"set_target": true,
|
|
||||||
"look_cooldown": 5.0,
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"subject": "other",
|
|
||||||
"test": "is_family",
|
|
||||||
"value": "player"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "has_equipment",
|
|
||||||
"domain": "head",
|
|
||||||
"subject": "other",
|
|
||||||
"operator": "not",
|
|
||||||
"value": "carved_pumpkin"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 5,
|
|
||||||
"must_see": true,
|
|
||||||
"attack_interval": 10,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "endermite"
|
|
||||||
},
|
|
||||||
"max_dist": 64
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": false,
|
|
||||||
"avoid_water": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 7,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 8,
|
|
||||||
"look_distance": 8.0,
|
|
||||||
"probability": 8.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 8
|
|
||||||
},
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
"minecraft:behavior.enderman_leave_block": {
|
|
||||||
"priority": 10
|
|
||||||
},
|
|
||||||
"minecraft:behavior.enderman_take_block": {
|
|
||||||
"priority": 11
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 80.0,
|
|
||||||
"max_dropped_ticks": 10,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:enderman_calm"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:become_angry": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:enderman_calm"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:enderman_angry"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:on_calm": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:enderman_angry"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:enderman_calm"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,111 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.17.10",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:endermite",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? 3 : 0"
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "endermite", "arthropod", "monster", "lightweight", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.4,
|
|
||||||
"height": 0.3
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.25
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 8,
|
|
||||||
"max": 8
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 2
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 3,
|
|
||||||
"track_target": true
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 5,
|
|
||||||
"must_see": true,
|
|
||||||
"within_radius": 16.0,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "player"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "enderman"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 16
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 1
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
},
|
|
||||||
"minecraft:block_climber": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,319 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:evocation_illager",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:celebrate": {
|
|
||||||
"minecraft:behavior.celebrate": {
|
|
||||||
"priority": 5,
|
|
||||||
"celebration_sound": "celebrate",
|
|
||||||
"sound_interval": {
|
|
||||||
"range_min": 2.0,
|
|
||||||
"range_max": 7.0
|
|
||||||
},
|
|
||||||
"jump_interval": {
|
|
||||||
"range_min": 1.0,
|
|
||||||
"range_max": 3.5
|
|
||||||
},
|
|
||||||
"duration": 30.0,
|
|
||||||
"on_celebration_end_event": {
|
|
||||||
"event": "minecraft:stop_celebrating",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:raid_configuration": {
|
|
||||||
"minecraft:dweller": {
|
|
||||||
"dwelling_type": "village",
|
|
||||||
"dweller_role": "hostile",
|
|
||||||
"update_interval_base": 60,
|
|
||||||
"update_interval_variant": 40,
|
|
||||||
"can_find_poi": false,
|
|
||||||
"can_migrate": false,
|
|
||||||
"first_founding_reward": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.move_to_village": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:ambient_sound_interval": {
|
|
||||||
"value": 2.0,
|
|
||||||
"range": 4.0,
|
|
||||||
"event_name": "ambient.in.raid"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:raid_persistence": {
|
|
||||||
"minecraft:persistent": {}
|
|
||||||
},
|
|
||||||
"minecraft:raid_despawn": {
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "10"
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "evocation_illager", "monster", "illager", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/evocation_illager.json"
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 24,
|
|
||||||
"max": 24
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.6,
|
|
||||||
"height": 1.9
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"can_pass_doors": true,
|
|
||||||
"can_open_doors": true,
|
|
||||||
"avoid_water": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.summon_entity": {
|
|
||||||
"priority": 2,
|
|
||||||
|
|
||||||
"summon_choices": [
|
|
||||||
{
|
|
||||||
"min_activation_range": 0.0,
|
|
||||||
"max_activation_range": 3.0,
|
|
||||||
"cooldown_time": 5.0,
|
|
||||||
"weight": 3,
|
|
||||||
"cast_duration": 2.0,
|
|
||||||
"particle_color": "#FF664D59",
|
|
||||||
"start_sound_event": "cast.spell",
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"shape": "circle",
|
|
||||||
"target": "self",
|
|
||||||
"base_delay": 1.0,
|
|
||||||
"delay_per_summon": 0.0,
|
|
||||||
"num_entities_spawned": 5,
|
|
||||||
"entity_type": "minecraft:evocation_fang",
|
|
||||||
"size": 1.5,
|
|
||||||
"entity_lifespan": 1.1,
|
|
||||||
"sound_event": "prepare.attack"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"shape": "circle",
|
|
||||||
"target": "self",
|
|
||||||
"base_delay": 0.15,
|
|
||||||
"delay_per_summon": 0.0,
|
|
||||||
"num_entities_spawned": 8,
|
|
||||||
"entity_type": "minecraft:evocation_fang",
|
|
||||||
"size": 2.5,
|
|
||||||
"entity_lifespan": 1.1
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"min_activation_range": 3.0,
|
|
||||||
"weight": 3,
|
|
||||||
"cooldown_time": 5.0,
|
|
||||||
"cast_duration": 2.0,
|
|
||||||
"particle_color": "#FF664D59",
|
|
||||||
"start_sound_event": "cast.spell",
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"shape": "line",
|
|
||||||
"target": "self",
|
|
||||||
"base_delay": 1.0,
|
|
||||||
"delay_per_summon": 0.05,
|
|
||||||
"num_entities_spawned": 16,
|
|
||||||
"entity_type": "minecraft:evocation_fang",
|
|
||||||
"size": 20,
|
|
||||||
"entity_lifespan": 1.1
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"cooldown_time": 17.0,
|
|
||||||
"cast_duration": 5.0,
|
|
||||||
"particle_color": "#FFB3B3CC",
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"shape": "circle",
|
|
||||||
"target": "self",
|
|
||||||
"base_delay": 5.0,
|
|
||||||
"num_entities_spawned": 3,
|
|
||||||
"entity_type": "minecraft:vex",
|
|
||||||
"summon_cap": 8,
|
|
||||||
"summon_cap_radius": 16.0,
|
|
||||||
"size": 1.0,
|
|
||||||
"sound_event": "prepare.summon"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.send_event": {
|
|
||||||
"priority": 3,
|
|
||||||
"event_choices": [
|
|
||||||
{
|
|
||||||
"min_activation_range": 0.0,
|
|
||||||
"max_activation_range": 16.0,
|
|
||||||
"cooldown_time": 5.0,
|
|
||||||
"cast_duration": 3.0,
|
|
||||||
"particle_color": "#FFB38033",
|
|
||||||
"weight": 3,
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "sheep"},
|
|
||||||
{ "test" : "is_color", "subject" : "other", "value" : "blue"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"start_sound_event": "cast.spell",
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"base_delay": 2.0,
|
|
||||||
"event": "wololo",
|
|
||||||
"sound_event": "prepare.wololo"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.avoid_mob_type": {
|
|
||||||
"priority": 5,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": { "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
"max_dist": 8,
|
|
||||||
"walk_speed_multiplier": 0.6,
|
|
||||||
"sprint_speed_multiplier": 1.0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 8,
|
|
||||||
"speed_multiplier": 0.6
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 2,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "snowgolem"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "irongolem"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "wandering_trader"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 20
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "villager" },
|
|
||||||
{ "test": "has_component", "subject": "other", "operator": "!=", "value": "minecraft:is_baby" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 20
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"must_see": true
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 9,
|
|
||||||
"look_distance": 3.0,
|
|
||||||
"probability": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_entity": {
|
|
||||||
"priority": 10,
|
|
||||||
"look_distance": 8.0,
|
|
||||||
"filters": { "test" : "is_family", "subject" : "other", "value" : "mob" }
|
|
||||||
},
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
"minecraft:persistent": {
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:follow_range": {
|
|
||||||
"value": 64
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"events": {
|
|
||||||
"minecraft:spawn_for_raid": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:raid_configuration",
|
|
||||||
"minecraft:raid_despawn",
|
|
||||||
"minecraft:raid_persistence"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:start_celebrating": { // Event must be called exactly this for village to fire it when a raid is lost
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"add": { "component_groups": [ "minecraft:celebrate" ] }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test": "has_nametag", "value": false },
|
|
||||||
"remove": { "component_groups": [ "minecraft:raid_persistence" ] }
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:stop_celebrating": {
|
|
||||||
"remove": { "component_groups": [ "minecraft:celebrate" ] }
|
|
||||||
},
|
|
||||||
"minecraft:raid_expired": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "has_nametag", "value": false },
|
|
||||||
"remove": { "component_groups": [ "minecraft:raid_persistence" ] }
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:eye_of_ender_signal",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": false,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.25,
|
|
||||||
"height": 0.25
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 80.0,
|
|
||||||
"max_dropped_ticks": 10,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,75 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:fireball",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": false,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:exploding": {
|
|
||||||
"minecraft:explode": {
|
|
||||||
"fuse_length": 0,
|
|
||||||
"fuse_lit": true,
|
|
||||||
"power": 1,
|
|
||||||
"causes_fire": true,
|
|
||||||
"fire_affected_by_griefing": true,
|
|
||||||
"destroy_affected_by_griefing": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.31,
|
|
||||||
"height": 0.31
|
|
||||||
},
|
|
||||||
"minecraft:projectile": {
|
|
||||||
|
|
||||||
"on_hit": {
|
|
||||||
"definition_event": {
|
|
||||||
"affect_projectile": true,
|
|
||||||
"event_trigger": {
|
|
||||||
"event": "minecraft:explode",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"power": 1.6,
|
|
||||||
"gravity": 0.00,
|
|
||||||
"inertia": 1,
|
|
||||||
"liquid_inertia": 1,
|
|
||||||
"uncertainty_base": 0,
|
|
||||||
"uncertainty_multiplier": 0,
|
|
||||||
"anchor": 1,
|
|
||||||
"offset": [ 0, -0.1, 0 ],
|
|
||||||
"reflect_on_hurt": true,
|
|
||||||
"catch_fire": true
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 80.0,
|
|
||||||
"max_dropped_ticks": 7,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"events": {
|
|
||||||
"minecraft:explode": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:exploding"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:fireworks_rocket",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.25,
|
|
||||||
"height": 0.25
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 80.0,
|
|
||||||
"max_dropped_ticks": 10,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,143 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:cod",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "cod", "fish" ]
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.6,
|
|
||||||
"height": 0.3
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 6,
|
|
||||||
"max": 6
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/fish.json"
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0,
|
|
||||||
"breathes_air": false,
|
|
||||||
"breathes_water": true
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.1
|
|
||||||
},
|
|
||||||
"minecraft:underwater_movement": {
|
|
||||||
"value": 0.1
|
|
||||||
},
|
|
||||||
"minecraft:navigation.generic": { // Allows the mob to go through water
|
|
||||||
"is_amphibious": false,
|
|
||||||
"can_path_over_water": false,
|
|
||||||
"can_swim": true,
|
|
||||||
"can_walk": false,
|
|
||||||
"can_breach": false,
|
|
||||||
"can_sink": false
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
"has_gravity": false
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.sway": {
|
|
||||||
"sway_amplitude": 0.0
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {
|
|
||||||
"min_distance": 32,
|
|
||||||
"max_distance": 40
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.swim_idle": {
|
|
||||||
"priority": 5,
|
|
||||||
"idle_time": 5.0,
|
|
||||||
"success_rate": 0.1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_swim": { // Randomly selects points to go to, even in water
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 1.0,
|
|
||||||
"xz_dist": 16,
|
|
||||||
"y_dist": 4,
|
|
||||||
"interval": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.swim_wander": {
|
|
||||||
"priority": 4,
|
|
||||||
"interval": 0.1,
|
|
||||||
"look_ahead": 2.0,
|
|
||||||
"speed_multiplier": 1.0,
|
|
||||||
"wander_time": 5.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.avoid_mob_type": {
|
|
||||||
"priority": 1,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family", "subject": "other", "value": "player"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_family", "subject": "other", "value": "axolotl"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 6,
|
|
||||||
"walk_speed_multiplier": 1.5,
|
|
||||||
"sprint_speed_multiplier": 2.0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:flocking": {
|
|
||||||
"in_water": true,
|
|
||||||
"match_variants": false,
|
|
||||||
"use_center_of_mass": true,
|
|
||||||
"low_flock_limit": 4,
|
|
||||||
"high_flock_limit": 8,
|
|
||||||
"goal_weight": 2.0,
|
|
||||||
"loner_chance": 0.1,
|
|
||||||
"influence_radius": 3.0,
|
|
||||||
"breach_influence": 7.0,
|
|
||||||
"separation_weight": 1.75,
|
|
||||||
"separation_threshold": 0.95,
|
|
||||||
"cohesion_weight": 2.0,
|
|
||||||
"cohesion_threshold": 1.95,
|
|
||||||
"innner_cohesion_threshold": 1.25,
|
|
||||||
"min_height": 1.5,
|
|
||||||
"max_height": 6.0,
|
|
||||||
"block_distance": 2.0,
|
|
||||||
"block_weight": 0.85
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:fishing_hook",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": false,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"loot_jungle": {
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/gameplay/jungle_fishing.json"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.15,
|
|
||||||
"height": 0.15
|
|
||||||
},
|
|
||||||
"minecraft:projectile": {
|
|
||||||
"on_hit": { "stick_in_ground": {} }
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/gameplay/fishing.json"
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": false,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 80.0,
|
|
||||||
"max_dropped_ticks": 7,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_biome",
|
|
||||||
"value": "jungle"
|
|
||||||
},
|
|
||||||
"add": { "component_groups": [ "loot_jungle" ] }
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,887 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.17.10",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:fox",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:fox_baby": {
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": [
|
|
||||||
"sweet_berries",
|
|
||||||
"glow_berries"
|
|
||||||
],
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 9,
|
|
||||||
"speed_multiplier": 1.1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_bred": "Math.Random(1,7)",
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/fox.json"
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:breedable": {
|
|
||||||
"require_tame": false,
|
|
||||||
"breed_items": [
|
|
||||||
"sweet_berries",
|
|
||||||
"glow_berries"
|
|
||||||
],
|
|
||||||
"breeds_with": {
|
|
||||||
"mate_type": "minecraft:fox",
|
|
||||||
"baby_type": "minecraft:fox",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_with_item": {
|
|
||||||
"minecraft:equipment": {
|
|
||||||
"table": "loot_tables/entities/fox_equipment.json",
|
|
||||||
"slot_drop_chance": [
|
|
||||||
{
|
|
||||||
"slot": "slot.weapon.mainhand",
|
|
||||||
"drop_chance": 1.0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:trusting_fox" : {
|
|
||||||
"minecraft:trust": {},
|
|
||||||
"minecraft:behavior.defend_trusted_target": {
|
|
||||||
"priority": 0,
|
|
||||||
"within_radius": 25,
|
|
||||||
"must_see": false,
|
|
||||||
"aggro_sound": "mad",
|
|
||||||
"sound_chance": 0.05,
|
|
||||||
"on_defend_start": {
|
|
||||||
"event": "minecraft:fox_configure_defending",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:docile_fox": {
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.25
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 10,
|
|
||||||
"track_target": true,
|
|
||||||
"require_complete_path": true,
|
|
||||||
"reach_multiplier": 1.5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:defending_fox": {
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 1,
|
|
||||||
"track_target": true,
|
|
||||||
"require_complete_path": true,
|
|
||||||
"reach_multiplier": 1.5
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 1.25
|
|
||||||
},
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "is_daytime", "value": true },
|
|
||||||
{ "test": "has_target", "operator": "==", "value": false }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:fox_configure_docile_day"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "is_daytime", "value": false },
|
|
||||||
{ "test": "has_target", "operator": "==", "value": false }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:fox_configure_docile_night"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_red": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_prioritized_attackable_target": {
|
|
||||||
"priority": 6,
|
|
||||||
"attack_interval": 2,
|
|
||||||
"reselect_targets": true,
|
|
||||||
"target_search_height": 5,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "rabbit"
|
|
||||||
},
|
|
||||||
"max_dist": 12,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "chicken"
|
|
||||||
},
|
|
||||||
"max_dist": 12,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "cod"
|
|
||||||
},
|
|
||||||
"max_dist": 12,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "salmon"
|
|
||||||
},
|
|
||||||
"max_dist": 12,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "tropicalfish"
|
|
||||||
},
|
|
||||||
"max_dist": 12,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "baby_turtle"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "in_water",
|
|
||||||
"subject": "other",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 12,
|
|
||||||
"priority": 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_arctic": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_prioritized_attackable_target": {
|
|
||||||
"priority": 6,
|
|
||||||
"attack_interval": 2,
|
|
||||||
"reselect_targets": true,
|
|
||||||
"target_search_height": 5,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "rabbit"
|
|
||||||
},
|
|
||||||
"max_dist": 12,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "chicken"
|
|
||||||
},
|
|
||||||
"max_dist": 12,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "cod"
|
|
||||||
},
|
|
||||||
"max_dist": 12,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "salmon"
|
|
||||||
},
|
|
||||||
"max_dist": 12,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "tropicalfish"
|
|
||||||
},
|
|
||||||
"max_dist": 12,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "baby_turtle"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "in_water",
|
|
||||||
"subject": "other",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 12,
|
|
||||||
"priority": 1
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_thunderstorm": {
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "weather_at_position", "operator": "!=", "value": "thunderstorm" },
|
|
||||||
{ "test": "is_daytime", "value": true }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:fox_configure_day"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "weather_at_position", "operator": "!=", "value": "thunderstorm" },
|
|
||||||
{ "test": "is_daytime", "value": false }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:fox_configure_night"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:behavior.find_cover": {
|
|
||||||
"priority": 0,
|
|
||||||
"speed_multiplier": 1,
|
|
||||||
"cooldown_time": 0.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_day": {
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"filters": { "test" : "weather_at_position", "value" : "thunderstorm" },
|
|
||||||
"event": "minecraft:fox_configure_thunderstorm"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test": "is_daytime", "value": false },
|
|
||||||
"event": "minecraft:fox_configure_night"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nap": {
|
|
||||||
"priority": 8,
|
|
||||||
"cooldown_min": 2.0,
|
|
||||||
"cooldown_max": 7.0,
|
|
||||||
"mob_detect_dist": 12.0,
|
|
||||||
"mob_detect_height": 6.0,
|
|
||||||
"can_nap_filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "in_water",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "on_ground",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_underground",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "weather_at_position",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "thunderstorm"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"wake_mob_exceptions": {
|
|
||||||
"any_of": [
|
|
||||||
{
|
|
||||||
"test": "trusts",
|
|
||||||
"subject": "other",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"operator": "==",
|
|
||||||
"value": "fox"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_sneaking",
|
|
||||||
"subject": "other",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.find_cover": {
|
|
||||||
"priority": 9,
|
|
||||||
"speed_multiplier": 1,
|
|
||||||
"cooldown_time": 5.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_night": {
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"filters": { "test" : "weather_at_position", "value" : "thunderstorm" },
|
|
||||||
"event": "minecraft:fox_configure_thunderstorm"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test": "is_daytime", "value": true },
|
|
||||||
"event": "minecraft:fox_configure_day"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.stroll_towards_village": {
|
|
||||||
"priority": 11,
|
|
||||||
"speed_multiplier": 1.0,
|
|
||||||
"goal_radius": 3.0,
|
|
||||||
"cooldown_time": 10.0,
|
|
||||||
"search_range": 32,
|
|
||||||
"start_chance": 0.005
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_ambient_normal": {
|
|
||||||
"minecraft:ambient_sound_interval": {
|
|
||||||
"event_name": "ambient"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_ambient_sleep": {
|
|
||||||
"minecraft:ambient_sound_interval": {
|
|
||||||
"event_name": "sleep"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_ambient_night": {
|
|
||||||
"minecraft:ambient_sound_interval": {
|
|
||||||
"event_name": "screech",
|
|
||||||
"value": 80,
|
|
||||||
"range": 160
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "fox", "lightweight", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"totalSupply": 15,
|
|
||||||
"suffocateTime": 0
|
|
||||||
},
|
|
||||||
"minecraft:equip_item": {
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"avoid_water": true,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.6,
|
|
||||||
"height": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 20,
|
|
||||||
"max": 20
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.3
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 2
|
|
||||||
},
|
|
||||||
"minecraft:shareables": {
|
|
||||||
"all_items": true,
|
|
||||||
"all_items_max_amount": 1,
|
|
||||||
"items": [
|
|
||||||
{ "item": "minecraft:apple", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:appleEnchanted", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:baked_potato", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:beef", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:beetroot", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:beetroot_soup", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:bread", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:carrot", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:chicken", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:chorus_fruit", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:clownfish", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:cooked_beef", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:cooked_chicken", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:cooked_fish", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:cooked_porkchop", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:cooked_rabbit", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:cooked_salmon", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:cookie", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:dried_kelp", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:fish", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:golden_apple", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:golden_carrot", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:melon", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:mushroom_stew", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:muttonCooked", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:muttonRaw", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:poisonous_potato", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:porkchop", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:potato", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:pufferfish", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:pumpkin_pie", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:rabbit", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:rabbit_stew", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:rotten_flesh", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:salmon", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:spider_eye", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:sweet_berries", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:glow_berries", "priority": 0, "max_amount": 1 },
|
|
||||||
{ "item": "minecraft:suspicious_stew", "priority": 0, "max_amount": 1 }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"on_damage": {
|
|
||||||
"filters": {
|
|
||||||
"test": "is_block",
|
|
||||||
"subject": "block",
|
|
||||||
"value": "minecraft:sweet_berry_bush"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"deals_damage": false
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.equip_item": {
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.avoid_mob_type": {
|
|
||||||
"priority": 5,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "player" },
|
|
||||||
{ "test": "trusts", "subject": "other", "operator": "!=", "value": true },
|
|
||||||
{ "test": "is_sneaking", "subject": "other", "operator": "!=", "value": true }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "polarbear" },
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "wolf" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 10,
|
|
||||||
"walk_speed_multiplier": 1.0,
|
|
||||||
"sprint_speed_multiplier": 1.5
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 0.5,
|
|
||||||
"within_radius": 16,
|
|
||||||
"can_get_scared": true,
|
|
||||||
"items": [
|
|
||||||
"sweet_berries",
|
|
||||||
"glow_berries"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.stalk_and_pounce_on_target": {
|
|
||||||
"priority": 7,
|
|
||||||
"stalk_speed": 1.2,
|
|
||||||
"max_stalk_dist": 12.0,
|
|
||||||
"leap_height": 0.9,
|
|
||||||
"leap_dist": 0.8,
|
|
||||||
"pounce_max_dist": 5.0,
|
|
||||||
"interest_time": 2.0,
|
|
||||||
"stuck_time": 2.0,
|
|
||||||
"strike_dist": 2.0,
|
|
||||||
"stuck_blocks": { "test": "is_block", "subject": "block", "operator": "==", "value": "snow_layer" }
|
|
||||||
},
|
|
||||||
"minecraft:behavior.pickup_items": {
|
|
||||||
"priority": 11,
|
|
||||||
"max_dist": 3,
|
|
||||||
"goal_radius": 2,
|
|
||||||
"speed_multiplier": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:behavior.eat_carried_item": {
|
|
||||||
"priority": 12,
|
|
||||||
"delay_before_eating": 28
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around_and_sit": {
|
|
||||||
"priority": 12,
|
|
||||||
"min_look_count": 2,
|
|
||||||
"max_look_count": 5,
|
|
||||||
"min_look_time": 80,
|
|
||||||
"max_look_time": 100,
|
|
||||||
"probability": 0.001
|
|
||||||
},
|
|
||||||
"minecraft:behavior.raid_garden": {
|
|
||||||
"priority": 12,
|
|
||||||
"blocks": [
|
|
||||||
"minecraft:sweet_berry_bush",
|
|
||||||
"minecraft:cave_vines_head_with_berries",
|
|
||||||
"minecraft:cave_vines_body_with_berries"
|
|
||||||
],
|
|
||||||
"speed_multiplier": 1.2,
|
|
||||||
"search_range": 12,
|
|
||||||
"search_height": 2,
|
|
||||||
"goal_radius": 0.8,
|
|
||||||
"max_to_eat": 0,
|
|
||||||
"initial_eat_delay": 2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 13,
|
|
||||||
"speed_multiplier": 0.8
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 14,
|
|
||||||
"look_distance": 6.0,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 15
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:balloonable": {
|
|
||||||
"mass": 0.6
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
},
|
|
||||||
"minecraft:scheduler": {
|
|
||||||
"min_delay_secs": 0,
|
|
||||||
"max_delay_secs": 0,
|
|
||||||
"scheduled_events": [
|
|
||||||
{
|
|
||||||
"filters": [
|
|
||||||
{ "test": "is_sleeping", "value": true }
|
|
||||||
],
|
|
||||||
"event": "minecraft:ambient_sleep"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of":[
|
|
||||||
{ "test" : "is_daytime", "value" : false },
|
|
||||||
{ "test": "distance_to_nearest_player", "operator": ">", "value": 16 }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:ambient_night"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of":[
|
|
||||||
{ "test" : "is_sleeping", "value" : false },
|
|
||||||
{
|
|
||||||
"any_of":[
|
|
||||||
{ "test" : "is_daytime", "value" : true },
|
|
||||||
{ "test": "distance_to_nearest_player", "operator": "<=", "value": 16 }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:ambient_normal"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"filters": { "test" : "is_daytime", "value" : false },
|
|
||||||
"event": "minecraft:fox_configure_night"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": { "test" : "is_daytime", "value" : true },
|
|
||||||
"event": "minecraft:fox_configure_day"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:block_climber": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 95,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_adult",
|
|
||||||
"minecraft:fox_with_item",
|
|
||||||
"minecraft:docile_fox"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 5,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_baby",
|
|
||||||
"minecraft:docile_fox"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_snow_covered",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"add": { "component_groups": [ "minecraft:fox_arctic" ] }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_snow_covered",
|
|
||||||
"value": false
|
|
||||||
},
|
|
||||||
"add": { "component_groups": [ "minecraft:fox_red" ] }
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_baby",
|
|
||||||
"minecraft:trusting_fox",
|
|
||||||
"minecraft:docile_fox"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_configure_thunderstorm": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_night",
|
|
||||||
"minecraft:fox_day"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_thunderstorm"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_configure_day": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_night",
|
|
||||||
"minecraft:fox_thunderstorm"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_day"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_configure_night": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_day",
|
|
||||||
"minecraft:fox_thunderstorm"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_night"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ambient_normal": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_ambient_normal"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:ambient_sleep": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_ambient_sleep"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:ambient_night": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:fox_ambient_night"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_configure_defending": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:docile_fox",
|
|
||||||
"minecraft:fox_day",
|
|
||||||
"minecraft:fox_night"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:defending_fox"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_configure_docile_day": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:defending_fox",
|
|
||||||
"minecraft:fox_night"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:docile_fox",
|
|
||||||
"minecraft:fox_day"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:fox_configure_docile_night": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:defending_fox",
|
|
||||||
"minecraft:fox_day"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:docile_fox",
|
|
||||||
"minecraft:fox_night"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,105 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:ghast",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? 5 + (query.equipment_count * Math.Random(1,3)) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:fire_immune": {
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 10,
|
|
||||||
"max": 10
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 4.02,
|
|
||||||
"height": 4
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.03
|
|
||||||
},
|
|
||||||
"minecraft:navigation.float": {
|
|
||||||
"can_path_over_water": true
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float_wander": {
|
|
||||||
"priority": 2,
|
|
||||||
"must_reach": true
|
|
||||||
},
|
|
||||||
"minecraft:can_fly": {
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/ghast.json"
|
|
||||||
},
|
|
||||||
"minecraft:shooter": {
|
|
||||||
"def": "minecraft:fireball"
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "ghast", "monster", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "fall",
|
|
||||||
"deals_damage": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.ranged_attack": {
|
|
||||||
"priority": 1,
|
|
||||||
"attack_radius": 64,
|
|
||||||
"charge_shoot_trigger": 2,
|
|
||||||
"charge_charged_trigger": 1
|
|
||||||
},
|
|
||||||
"minecraft:follow_range": {
|
|
||||||
"value": 64,
|
|
||||||
"max": 64
|
|
||||||
},
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 2,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "player"
|
|
||||||
},
|
|
||||||
"max_dist": 28
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"must_see": true
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,134 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.13.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:glow_squid",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups":{
|
|
||||||
"minecraft:squid_baby": {
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 0.5
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "!query.is_baby && query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "squid", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.95,
|
|
||||||
"height": 0.95
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 10,
|
|
||||||
"max": 10
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "in_lava",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/glow_squid.json"
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0,
|
|
||||||
"breathes_air": false,
|
|
||||||
"breathes_water": true
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.2
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"can_sink": false
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:balloonable": {
|
|
||||||
},
|
|
||||||
"minecraft:behavior.squid_move_away_from_ground": {
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.squid_flee": {
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.squid_idle": {
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.squid_dive": {
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.squid_out_of_water": {
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events":{
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 95,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 5,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:squid_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,448 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:goat",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"component_groups": {
|
|
||||||
"goat_baby": {
|
|
||||||
"minecraft:is_baby": {},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 1
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": "wheat",
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"goat_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_bred": "Math.Random(1,7)",
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/goat.json"
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 0.6
|
|
||||||
},
|
|
||||||
"minecraft:breedable": {
|
|
||||||
"require_tame": false,
|
|
||||||
"breed_items": "wheat",
|
|
||||||
"breeds_with": {
|
|
||||||
"mate_type": "minecraft:goat",
|
|
||||||
"baby_type": "minecraft:goat",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mutation_factor": {
|
|
||||||
"variant": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 2
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"goat_default": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"goat_screamer": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"interact_default": {
|
|
||||||
"minecraft:interact": {
|
|
||||||
"interactions": [
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "has_component",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "minecraft:is_baby"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "player"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "has_equipment",
|
|
||||||
"domain": "hand",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "bucket:0"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"transform_to_item": "bucket:1",
|
|
||||||
"play_sounds": "milk_suspiciously",
|
|
||||||
"interact_text": "action.interact.milk"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"interact_screamer": {
|
|
||||||
"minecraft:interact": {
|
|
||||||
"interactions": [
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "has_component",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "minecraft:is_baby"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "player"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "has_equipment",
|
|
||||||
"domain": "hand",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "bucket:0"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"transform_to_item": "bucket:1",
|
|
||||||
"play_sounds": "milk.screamer",
|
|
||||||
"interact_text": "action.interact.milk"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ram_default": {
|
|
||||||
"minecraft:behavior.ram_attack": {
|
|
||||||
"priority": 5,
|
|
||||||
"run_speed": 0.7,
|
|
||||||
"ram_speed": 1.8,
|
|
||||||
"min_ram_distance": 4,
|
|
||||||
"ram_distance": 7,
|
|
||||||
"knockback_force": 2.5,
|
|
||||||
"knockback_height": 0.04,
|
|
||||||
"pre_ram_sound": "pre_ram",
|
|
||||||
"ram_impact_sound": "ram_impact",
|
|
||||||
"cooldown_range": [
|
|
||||||
30,
|
|
||||||
300
|
|
||||||
],
|
|
||||||
"on_start": [
|
|
||||||
{
|
|
||||||
"event": "start_event",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"ram_screamer": {
|
|
||||||
"minecraft:behavior.ram_attack": {
|
|
||||||
"priority": 5,
|
|
||||||
"run_speed": 0.7,
|
|
||||||
"ram_speed": 1.8,
|
|
||||||
"min_ram_distance": 4,
|
|
||||||
"ram_distance": 7,
|
|
||||||
"knockback_force": 2.5,
|
|
||||||
"knockback_height": 0.04,
|
|
||||||
"pre_ram_sound": "pre_ram.screamer",
|
|
||||||
"ram_impact_sound": "ram_impact.screamer",
|
|
||||||
"cooldown_range": [
|
|
||||||
5,
|
|
||||||
15
|
|
||||||
],
|
|
||||||
"on_start": [
|
|
||||||
{
|
|
||||||
"event": "start_event",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"attack_cooldown": {
|
|
||||||
"minecraft:attack_cooldown": {
|
|
||||||
"attack_cooldown_time": [
|
|
||||||
30,
|
|
||||||
40
|
|
||||||
],
|
|
||||||
"attack_cooldown_complete_event": {
|
|
||||||
"event": "attack_cooldown_complete_event",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:behavior.jump_to_block": {
|
|
||||||
"priority": 8,
|
|
||||||
"search_width": 10,
|
|
||||||
"search_height": 10,
|
|
||||||
"minimum_path_length": 8,
|
|
||||||
"minimum_distance": 1,
|
|
||||||
"scale_factor": 0.6,
|
|
||||||
"cooldown_range": [
|
|
||||||
30,
|
|
||||||
60
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:genetics": {
|
|
||||||
"mutation_rate": 0.02,
|
|
||||||
"genes": [
|
|
||||||
{
|
|
||||||
"name": "goat_variant",
|
|
||||||
"use_simplified_breeding": true,
|
|
||||||
"allele_range": {
|
|
||||||
"range_min": 1,
|
|
||||||
"range_max": 100
|
|
||||||
},
|
|
||||||
"genetic_variants": [
|
|
||||||
{
|
|
||||||
"main_allele": {
|
|
||||||
"range_min": 1,
|
|
||||||
"range_max": 2
|
|
||||||
},
|
|
||||||
"birth_event": {
|
|
||||||
"event": "minecraft:born_screamer",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"main_allele": {
|
|
||||||
"range_min": 3,
|
|
||||||
"range_max": 100
|
|
||||||
},
|
|
||||||
"birth_event": {
|
|
||||||
"event": "minecraft:born_default",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [
|
|
||||||
"goat",
|
|
||||||
"animal"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"avoid_water": true,
|
|
||||||
"avoid_damage_blocks": true,
|
|
||||||
"blocks_to_avoid": [
|
|
||||||
{
|
|
||||||
"name": "minecraft:powder_snow"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {},
|
|
||||||
"minecraft:jump.static": {},
|
|
||||||
"minecraft:can_climb": {},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.9,
|
|
||||||
"height": 1.3
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 10,
|
|
||||||
"max": 10
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "in_lava",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.4
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 0.75,
|
|
||||||
"items": [
|
|
||||||
"wheat"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 6,
|
|
||||||
"within_radius": 16,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "goat"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "has_component",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "minecraft:attack_cooldown"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 16
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"must_see": true
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "fall",
|
|
||||||
"deals_damage": true,
|
|
||||||
"damage_modifier": -10
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 9,
|
|
||||||
"speed_multiplier": 0.6
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 10,
|
|
||||||
"look_distance": 6,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 11
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4,
|
|
||||||
"hard_distance": 6,
|
|
||||||
"max_distance": 10
|
|
||||||
},
|
|
||||||
"minecraft:physics": {},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 95,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"goat_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 5,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"goat_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"goat_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:born_default": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"goat_default",
|
|
||||||
"ram_default",
|
|
||||||
"interact_default"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:born_screamer": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"goat_screamer",
|
|
||||||
"ram_screamer",
|
|
||||||
"interact_screamer"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"goat_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"goat_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"start_event": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"attack_cooldown"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"attack_cooldown_complete_event": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"attack_cooldown"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,213 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:guardian",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:guardian_aggressive": {
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 1,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "squid"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "axolotl"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 16
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"attack_interval_min": 1.0,
|
|
||||||
"must_see": true
|
|
||||||
},
|
|
||||||
"minecraft:target_nearby_sensor": {
|
|
||||||
"inside_range": 3.0,
|
|
||||||
"outside_range": 4.0,
|
|
||||||
"on_inside_range": {
|
|
||||||
"event": "minecraft:target_too_close",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.guardian_attack": {
|
|
||||||
"priority": 4
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:guardian_passive": {
|
|
||||||
"minecraft:timer": {
|
|
||||||
"time": [ 1, 3 ],
|
|
||||||
"looping": false,
|
|
||||||
"time_down_event": {
|
|
||||||
"event": "minecraft:target_far_enough",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.avoid_mob_type": {
|
|
||||||
"priority": 1,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {"test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
"max_dist": 8,
|
|
||||||
"walk_speed_multiplier": 1,
|
|
||||||
"sprint_speed_multiplier": 1
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? 10 : 0"
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.85,
|
|
||||||
"height": 0.85
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 30,
|
|
||||||
"max": 30
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.12
|
|
||||||
},
|
|
||||||
"minecraft:underwater_movement": {
|
|
||||||
"value": 0.12
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 5
|
|
||||||
},
|
|
||||||
"minecraft:follow_range": {
|
|
||||||
"value": 16,
|
|
||||||
"max": 16
|
|
||||||
},
|
|
||||||
"minecraft:navigation.generic": {
|
|
||||||
"is_amphibious": true,
|
|
||||||
"can_path_over_water": false,
|
|
||||||
"can_swim": true,
|
|
||||||
"can_walk": false,
|
|
||||||
"can_breach": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.sway": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"breathes_water": true
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/guardian.json"
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:home": {
|
|
||||||
"restriction_radius": 16
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 1,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "squid"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "axolotl"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 16
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"attack_interval_min": 1.0,
|
|
||||||
"must_see": true
|
|
||||||
},
|
|
||||||
"minecraft:target_nearby_sensor": {
|
|
||||||
"inside_range": 3.0,
|
|
||||||
"outside_range": 4.0,
|
|
||||||
"on_inside_range": {
|
|
||||||
"event": "minecraft:target_too_close",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.guardian_attack": {
|
|
||||||
"priority": 4
|
|
||||||
},
|
|
||||||
"minecraft:behavior.move_towards_home_restriction": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_swim": {
|
|
||||||
"priority": 7,
|
|
||||||
"speed_multiplier": 1.0,
|
|
||||||
"interval": 80,
|
|
||||||
"avoid_surface": false
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 8,
|
|
||||||
"look_distance": 12.0,
|
|
||||||
"probability": 0.01
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 9
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "guardian", "monster", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:target_too_close": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:guardian_aggressive"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:guardian_passive"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:target_far_enough": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:guardian_passive"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:guardian_aggressive"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,518 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:hoglin",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"zombification_sensor": {
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"filters": {
|
|
||||||
"test": "in_nether",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": false
|
|
||||||
},
|
|
||||||
"event": "start_zombification_event"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"start_zombification": {
|
|
||||||
"minecraft:is_shaking": {},
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"filters": {
|
|
||||||
"test": "in_nether",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"event": "stop_zombification_event"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:timer": {
|
|
||||||
"looping": false,
|
|
||||||
"time": 15,
|
|
||||||
"time_down_event": {
|
|
||||||
"event": "become_zombie_event"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"become_zombie": {
|
|
||||||
"minecraft:transformation": {
|
|
||||||
"into": "minecraft:zoglin",
|
|
||||||
"transformation_sound": "converted_to_zombified",
|
|
||||||
"keep_level": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"angry_hoglin": {
|
|
||||||
"minecraft:angry": {
|
|
||||||
"duration": 10,
|
|
||||||
"broadcast_anger": true,
|
|
||||||
"broadcast_range": 16,
|
|
||||||
"calm_event": {
|
|
||||||
"event": "become_calm_event",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"angry_sound": "angry",
|
|
||||||
"sound_interval": {
|
|
||||||
"range_min": 2.0,
|
|
||||||
"range_max": 5.0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"attack_cooldown": {
|
|
||||||
"minecraft:attack_cooldown": {
|
|
||||||
"attack_cooldown_time": [ 10.0, 15.0 ],
|
|
||||||
"attack_cooldown_complete_event": {
|
|
||||||
"event": "attack_cooldown_complete_event",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:hoglin_baby": {
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "hoglin", "hoglin_baby", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.36
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1,
|
|
||||||
"track_target": true,
|
|
||||||
"reach_multiplier": 1.0,
|
|
||||||
"cooldown_time": 0.75
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.85,
|
|
||||||
"height": 0.85
|
|
||||||
},
|
|
||||||
"minecraft:custom_hit_test": {
|
|
||||||
"hitboxes": [
|
|
||||||
{
|
|
||||||
"width": 1.0,
|
|
||||||
"height": 0.85,
|
|
||||||
"pivot": [ 0, 0.5, 0 ]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": [ "crimson_fungus" ],
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 1
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 3,
|
|
||||||
"family_types": [
|
|
||||||
"piglin"
|
|
||||||
],
|
|
||||||
"seats": [
|
|
||||||
{
|
|
||||||
"position": [ 0.0, 0.9, -0.3 ],
|
|
||||||
"lock_rider_rotation": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"position": [ 0.0, 2.4, -0.3 ],
|
|
||||||
"lock_rider_rotation": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"position": [ 0.0, 3.9, -0.3 ],
|
|
||||||
"lock_rider_rotation": 0
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:hoglin_adult": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.9,
|
|
||||||
"height": 0.9
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.3
|
|
||||||
},
|
|
||||||
"minecraft:custom_hit_test": {
|
|
||||||
"hitboxes": [
|
|
||||||
{
|
|
||||||
"width": 2.0,
|
|
||||||
"height": 1.75,
|
|
||||||
"pivot": [ 0, 1, 0 ]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:group_size": {
|
|
||||||
"radius": 32,
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "has_component",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "minecraft:is_baby"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"value": "hoglin"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
"minecraft:on_target_acquired": {
|
|
||||||
"event": "become_angry_event",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/hoglin.json"
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1,
|
|
||||||
"track_target": true,
|
|
||||||
"reach_multiplier": 2.5,
|
|
||||||
"cooldown_time": 2
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": [ 3, 9 ]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 0.6
|
|
||||||
},
|
|
||||||
"minecraft:breedable": {
|
|
||||||
"require_tame": false,
|
|
||||||
"love_filters": {
|
|
||||||
"test": "has_component",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "minecraft:attack_cooldown"
|
|
||||||
},
|
|
||||||
"breeds_with": {
|
|
||||||
"mate_type": "minecraft:hoglin",
|
|
||||||
"baby_type": "minecraft:hoglin",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"breed_items": [ "crimson_fungus" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"unhuntable_adult": {
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "hoglin", "hoglin_adult", "mob" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"huntable_adult": {
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "hoglin", "hoglin_adult", "hoglin_huntable", "mob" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 40,
|
|
||||||
"max": 40
|
|
||||||
},
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_bred": "Math.Random(1,7)",
|
|
||||||
"on_death": "query.last_hit_by_player ? 5 : 0"
|
|
||||||
},
|
|
||||||
"minecraft:knockback_resistance": {
|
|
||||||
"value": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 4,
|
|
||||||
"within_radius": 16.0,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "player"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "has_component",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "minecraft:attack_cooldown"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 16
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"must_see": true
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "in_lava",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.avoid_mob_type": {
|
|
||||||
"priority": 0,
|
|
||||||
"remove_target": true,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "has_target",
|
|
||||||
"subject": "other",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "piglin"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"check_if_outnumbered": true,
|
|
||||||
"max_dist": 10,
|
|
||||||
"sprint_speed_multiplier": 1.2
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"avoid_mob_sound": "retreat",
|
|
||||||
"sound_interval": {
|
|
||||||
"range_min": 2.0,
|
|
||||||
"range_max": 5.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.avoid_block": {
|
|
||||||
"priority": 1,
|
|
||||||
"tick_interval": 5,
|
|
||||||
"search_range": 8,
|
|
||||||
"search_height": 4,
|
|
||||||
"walk_speed_modifier": 1,
|
|
||||||
"sprint_speed_modifier": 1,
|
|
||||||
"avoid_block_sound": "retreat",
|
|
||||||
"sound_interval": {
|
|
||||||
"range_min": 2.0,
|
|
||||||
"range_max": 5.0
|
|
||||||
},
|
|
||||||
"target_selection_method": "nearest",
|
|
||||||
"target_blocks": [
|
|
||||||
"minecraft:warped_fungus",
|
|
||||||
"minecraft:portal",
|
|
||||||
"minecraft:respawn_anchor"
|
|
||||||
],
|
|
||||||
"on_escape": [
|
|
||||||
{
|
|
||||||
"event": "escaped_event",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"avoid_water": true,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 7,
|
|
||||||
"speed_multiplier": 0.4
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 9
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 8,
|
|
||||||
"look_distance": 6.0,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 95,
|
|
||||||
"trigger": "spawn_adult"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 5,
|
|
||||||
"trigger": "spawn_baby"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"trigger": "spawn_baby"
|
|
||||||
},
|
|
||||||
"spawn_adult": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:hoglin_adult",
|
|
||||||
"huntable_adult",
|
|
||||||
"zombification_sensor"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"spawn_baby": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:hoglin_baby",
|
|
||||||
"zombification_sensor"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"stop_zombification_event": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"zombification_sensor"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"start_zombification"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"become_zombie_event": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"become_zombie"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"start_zombification_event": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"start_zombification"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"zombification_sensor"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"spawn_adult_unhuntable": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:hoglin_adult",
|
|
||||||
"unhuntable_adult",
|
|
||||||
"zombification_sensor"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:hoglin_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:hoglin_adult",
|
|
||||||
"huntable_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"become_angry_event": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"angry_hoglin"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"become_calm_event": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"angry_hoglin"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"escaped_event": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"attack_cooldown"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"angry_hoglin"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"attack_cooldown_complete_event": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"attack_cooldown"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,108 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:hopper_minecart",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:hopper_active": {
|
|
||||||
"minecraft:item_hopper": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:rail_sensor": {
|
|
||||||
"on_activate": {
|
|
||||||
"event": "minecraft:hopper_deactivate"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:hopper_inactive": {
|
|
||||||
"minecraft:rail_sensor": {
|
|
||||||
"on_deactivate": {
|
|
||||||
"event": "minecraft:hopper_activate"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "minecart", "inanimate" ]
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.98,
|
|
||||||
"height": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:rail_movement": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:inventory": {
|
|
||||||
"container_type": "minecart_hopper",
|
|
||||||
"inventory_size": 5,
|
|
||||||
"can_be_siphoned_from": true
|
|
||||||
},
|
|
||||||
"minecraft:is_stackable": {
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 60.0,
|
|
||||||
"max_dropped_ticks": 20,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
},
|
|
||||||
"conditional_values": [
|
|
||||||
{
|
|
||||||
"max_optimized_distance": 0.0,
|
|
||||||
"max_dropped_ticks": 0,
|
|
||||||
"conditional_values": [
|
|
||||||
{ "test": "is_moving", "subject": "self", "operator": "==", "value": true}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:hopper_active"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:hopper_activate": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:hopper_inactive"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:hopper_active"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:hopper_deactivate": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:hopper_active"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:hopper_inactive"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,626 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:horse",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:horse_baby": {
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:scale_by_age": {
|
|
||||||
"start_scale": 0.5,
|
|
||||||
"end_scale": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": [
|
|
||||||
{
|
|
||||||
"item": "wheat",
|
|
||||||
"growth": 0.016667
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "sugar",
|
|
||||||
"growth": 0.025
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "hay_block",
|
|
||||||
"growth": 0.15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "apple",
|
|
||||||
"growth": 0.05
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_carrot",
|
|
||||||
"growth": 0.05
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_apple",
|
|
||||||
"growth": 0.2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "appleEnchanted",
|
|
||||||
"growth": 0.2
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:horse_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_bred": "Math.Random(1,7)",
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/horse.json"
|
|
||||||
},
|
|
||||||
"minecraft:behavior.run_around_like_crazy": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:horse_wild": {
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"player",
|
|
||||||
"zombie"
|
|
||||||
],
|
|
||||||
"interact_text": "action.interact.mount",
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 1.1, -0.2 ]
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:behavior.mount_pathing": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 1.5,
|
|
||||||
"target_dist": 0.0,
|
|
||||||
"track_target": true
|
|
||||||
},
|
|
||||||
"minecraft:tamemount": {
|
|
||||||
"min_temper": 0,
|
|
||||||
"max_temper": 100,
|
|
||||||
"feed_text": "action.interact.feed",
|
|
||||||
"ride_text": "action.interact.mount",
|
|
||||||
"feed_items": [
|
|
||||||
{
|
|
||||||
"item": "wheat",
|
|
||||||
"temper_mod": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "sugar",
|
|
||||||
"temper_mod": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "apple",
|
|
||||||
"temper_mod": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_carrot",
|
|
||||||
"temper_mod": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_apple",
|
|
||||||
"temper_mod": 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "appleEnchanted",
|
|
||||||
"temper_mod": 10
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"auto_reject_items": [
|
|
||||||
{
|
|
||||||
"item": "horsearmorleather"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "horsearmoriron"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "horsearmorgold"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "horsearmordiamond"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "saddle"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tame_event": {
|
|
||||||
"event": "minecraft:on_tame",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:horse_tamed": {
|
|
||||||
"minecraft:is_tamed": {
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"crouching_skip_interact": true,
|
|
||||||
"family_types": [
|
|
||||||
"player"
|
|
||||||
],
|
|
||||||
"interact_text": "action.interact.ride.horse",
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 1.1, -0.2 ]
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:inventory": {
|
|
||||||
"inventory_size": 2,
|
|
||||||
"container_type": "horse"
|
|
||||||
},
|
|
||||||
"minecraft:breedable": {
|
|
||||||
"require_tame": true,
|
|
||||||
"inherit_tamed": false,
|
|
||||||
"breeds_with": [
|
|
||||||
{
|
|
||||||
"mate_type": "minecraft:horse",
|
|
||||||
"baby_type": "minecraft:horse",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"mate_type": "minecraft:donkey",
|
|
||||||
"baby_type": "minecraft:mule",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"breed_items": [
|
|
||||||
"golden_carrot",
|
|
||||||
"golden_apple",
|
|
||||||
"appleEnchanted"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1.2,
|
|
||||||
"items": [
|
|
||||||
"golden_apple",
|
|
||||||
"appleEnchanted",
|
|
||||||
"golden_carrot"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:horse_saddled": {
|
|
||||||
"minecraft:is_saddled": {
|
|
||||||
},
|
|
||||||
"minecraft:input_ground_controlled": {
|
|
||||||
},
|
|
||||||
"minecraft:can_power_jump": {
|
|
||||||
},
|
|
||||||
"minecraft:behavior.player_ride_tamed": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:base_white": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:base_creamy": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:base_chestnut": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:base_brown": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 3
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:base_black": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 4
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:base_gray": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:base_darkbrown": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 6
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:markings_none": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:markings_white_details": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:markings_white_fields": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:markings_white_dots": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 3
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:markings_black_dots": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 4
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:equippable": {
|
|
||||||
"slots": [
|
|
||||||
{
|
|
||||||
"slot": 0,
|
|
||||||
"item": "saddle",
|
|
||||||
"accepted_items": [ "saddle" ],
|
|
||||||
"on_equip": {
|
|
||||||
"event": "minecraft:horse_saddled"
|
|
||||||
},
|
|
||||||
"on_unequip": {
|
|
||||||
"event": "minecraft:horse_unsaddled"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"slot": 1,
|
|
||||||
"item": "horsearmoriron",
|
|
||||||
"accepted_items": [
|
|
||||||
"horsearmorleather",
|
|
||||||
"horsearmoriron",
|
|
||||||
"horsearmorgold",
|
|
||||||
"horsearmordiamond"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "horse", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 1.4,
|
|
||||||
"height": 1.6
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": {
|
|
||||||
"range_min": 15,
|
|
||||||
"range_max": 30
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": {
|
|
||||||
"range_min": 0.1125,
|
|
||||||
"range_max": 0.3375
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"avoid_water": true,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:horse.jump_strength": {
|
|
||||||
"value": {
|
|
||||||
"range_min": 0.4,
|
|
||||||
"range_max": 1.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:balloonable": {
|
|
||||||
},
|
|
||||||
"minecraft:healable": {
|
|
||||||
"items": [
|
|
||||||
{
|
|
||||||
"item": "wheat",
|
|
||||||
"heal_amount": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "sugar",
|
|
||||||
"heal_amount": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "hay_block",
|
|
||||||
"heal_amount": 20
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "apple",
|
|
||||||
"heal_amount": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_carrot",
|
|
||||||
"heal_amount": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_apple",
|
|
||||||
"heal_amount": 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "appleEnchanted",
|
|
||||||
"heal_amount": 10
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 1.2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 7,
|
|
||||||
"look_distance": 6.0,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 8
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 36,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:horse_adult",
|
|
||||||
"minecraft:horse_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 9,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:horse_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_white" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_creamy" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_chestnut" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_brown" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_black" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_gray" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_darkbrown" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:markings_none" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:markings_white_details" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:markings_white_fields" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:markings_white_dots" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:markings_black_dots" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:horse_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:on_tame": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:horse_wild"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:horse_tamed"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:horse_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:horse_adult",
|
|
||||||
"minecraft:horse_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:horse_saddled": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:horse_saddled"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:horse_unsaddled": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:horse_saddled"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:make_white": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_white" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:make_creamy": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_creamy" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:make_chestnut": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_chestnut" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:make_brown": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_brown" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:make_black": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_black" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:make_gray": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_gray" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:make_darkbrown": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:base_darkbrown" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,616 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.17.20",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:husk",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:look_to_start_zombie_transformation": {
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"filters": {
|
|
||||||
"test": "is_underwater", "subject": "self", "operator": "==", "value": true
|
|
||||||
},
|
|
||||||
"event": "minecraft:start_transforming"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:start_zombie_transformation": {
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"filters": {
|
|
||||||
"test": "is_underwater", "subject": "self", "operator": "==", "value": false
|
|
||||||
},
|
|
||||||
"event": "minecraft:stop_transforming"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:timer": {
|
|
||||||
"looping": false,
|
|
||||||
"time": 30,
|
|
||||||
"time_down_event": {
|
|
||||||
"event": "minecraft:convert_to_zombie"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:convert_to_zombie": {
|
|
||||||
"minecraft:transformation": {
|
|
||||||
"into": "minecraft:zombie<minecraft:as_adult>",
|
|
||||||
"transformation_sound": "convert_to_drowned",
|
|
||||||
"drop_equipment": true,
|
|
||||||
"delay": {
|
|
||||||
"value": 15
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:is_shaking": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:convert_to_baby_zombie": {
|
|
||||||
"minecraft:transformation": {
|
|
||||||
"into": "minecraft:zombie<minecraft:as_baby>",
|
|
||||||
"transformation_sound": "convert_to_drowned",
|
|
||||||
"drop_equipment": true,
|
|
||||||
"delay": {
|
|
||||||
"value": 15
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:is_shaking": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:zombie_husk_baby": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? 12 + (query.equipment_count * Math.Random(1,3)) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:is_baby": {},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 0.53125
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.35
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:zombie_husk_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? 5 + (query.equipment_count * Math.Random(1,3)) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.23
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"zombie"
|
|
||||||
],
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 1.1, -0.35 ],
|
|
||||||
"lock_rider_rotation": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.mount_pathing": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 1.25,
|
|
||||||
"target_dist": 0.0,
|
|
||||||
"track_target": true
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 1.0625
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:zombie_husk_jockey": {
|
|
||||||
"minecraft:behavior.find_mount": {
|
|
||||||
"priority": 1,
|
|
||||||
"within_radius": 16
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0,
|
|
||||||
"breathes_water": true
|
|
||||||
},
|
|
||||||
"minecraft:equip_item": {
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.6,
|
|
||||||
"height": 1.9
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
|
|
||||||
// Zombie_husk Components
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "husk", "zombie", "undead", "monster", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/zombie.json"
|
|
||||||
},
|
|
||||||
"minecraft:equipment": {
|
|
||||||
"table": "loot_tables/entities/zombie_equipment.json"
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 20,
|
|
||||||
"max": 20
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "in_lava",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 3,
|
|
||||||
"effect_name": "hunger",
|
|
||||||
"effect_duration": 30
|
|
||||||
},
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 2
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"is_amphibious": true,
|
|
||||||
"can_pass_doors": true,
|
|
||||||
"can_break_doors": true,
|
|
||||||
"avoid_portals": false
|
|
||||||
},
|
|
||||||
"minecraft:annotation.break_door": {
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:shareables": {
|
|
||||||
"items": [
|
|
||||||
{
|
|
||||||
"item": "minecraft:netherite_sword",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:diamond_sword",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:iron_sword",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:golden_sword",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:stone_sword",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:wooden_sword",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:netherite_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:diamond_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:iron_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:chainmail_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:golden_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:leather_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:turtle_helmet",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:skull:0",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:skull:1",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:carved_pumpkin",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:netherite_chestplate",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:diamond_chestplate",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:iron_chestplate",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:chainmail_chestplate",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:golden_chestplate",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:leather_chestplate",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:netherite_leggings",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:diamond_leggings",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:iron_leggings",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:chainmail_leggings",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:golden_leggings",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:leather_leggings",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:netherite_boots",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:diamond_boots",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:iron_boots",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:chainmail_boots",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:golden_boots",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "minecraft:leather_boots",
|
|
||||||
"want_amount": 1,
|
|
||||||
"surplus_amount": 1,
|
|
||||||
"priority": 5
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_underwater",
|
|
||||||
"subject": "self",
|
|
||||||
"operator": "==",
|
|
||||||
"value": true
|
|
||||||
},
|
|
||||||
"event": "minecraft:start_transforming"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
// Zombie_husk Behaviors
|
|
||||||
"minecraft:behavior.equip_item": {
|
|
||||||
"priority": 2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
"minecraft:behavior.stomp_turtle_egg": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1,
|
|
||||||
"search_range": 10,
|
|
||||||
"search_height": 2,
|
|
||||||
"goal_radius": 1.14,
|
|
||||||
"interval": 20
|
|
||||||
},
|
|
||||||
"minecraft:behavior.pickup_items": {
|
|
||||||
"priority": 6,
|
|
||||||
"max_dist": 3,
|
|
||||||
"goal_radius": 2,
|
|
||||||
"speed_multiplier": 1.0,
|
|
||||||
"pickup_based_on_chance": true,
|
|
||||||
"can_pickup_any_item": true,
|
|
||||||
"excluded_items": [
|
|
||||||
"minecraft:glow_ink_sac"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 7,
|
|
||||||
"speed_multiplier": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 8,
|
|
||||||
"look_distance": 6,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 9
|
|
||||||
},
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 2,
|
|
||||||
"must_see": true,
|
|
||||||
"reselect_targets": true,
|
|
||||||
"within_radius": 25.0,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "player"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "snowgolem"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "irongolem"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 35
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "villager"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "wandering_trader"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 35,
|
|
||||||
"must_see": false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "baby_turtle"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "in_water",
|
|
||||||
"subject": "other",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 35
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 9500,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:zombie_husk_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 425,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:zombie_husk_baby"
|
|
||||||
]
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 75,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:zombie_husk_baby",
|
|
||||||
"minecraft:zombie_husk_jockey"
|
|
||||||
]
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:start_transforming": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:start_zombie_transformation"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "minecraft:look_to_start_zombie_transformation" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:stop_transforming": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:look_to_start_zombie_transformation"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:start_zombie_transformation"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:convert_to_zombie": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "has_component",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "minecraft:is_baby"
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:convert_to_zombie" ]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "minecraft:start_zombie_transformation" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "has_component",
|
|
||||||
"value": "minecraft:is_baby"
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [ "minecraft:convert_to_baby_zombie" ]
|
|
||||||
},
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [ "minecraft:start_zombie_transformation" ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,346 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.13.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:iron_golem",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:player_created": {
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 2,
|
|
||||||
"entity_types": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "operator": "!=", "value" : "player"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "operator": "!=", "value" : "creeper"}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:village_created": {
|
|
||||||
"minecraft:behavior.defend_village_target": {
|
|
||||||
"priority": 1,
|
|
||||||
"must_reach": true,
|
|
||||||
"attack_chance": 0.05,
|
|
||||||
"entity_types": {
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "mob" },
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "player" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:dweller": {
|
|
||||||
"dwelling_type": "village",
|
|
||||||
"dweller_role": "defender",
|
|
||||||
"update_interval_base": 60,
|
|
||||||
"update_interval_variant": 40,
|
|
||||||
"can_find_poi": false,
|
|
||||||
"can_migrate": true,
|
|
||||||
"first_founding_reward": 0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "irongolem", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 1.4,
|
|
||||||
"height": 2.9
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/iron_golem.json"
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 100,
|
|
||||||
"max": 100
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.25
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": false,
|
|
||||||
"avoid_water": true,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": {
|
|
||||||
"range_min": 7,
|
|
||||||
"range_max": 21
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "fall",
|
|
||||||
"deals_damage": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:knockback_resistance": {
|
|
||||||
"value": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:balloonable": {
|
|
||||||
"mass": 2.0
|
|
||||||
},
|
|
||||||
"minecraft:preferred_path" : {
|
|
||||||
"max_fall_blocks" : 1,
|
|
||||||
"jump_cost" : 5,
|
|
||||||
"default_block_cost" : 1.5,
|
|
||||||
"preferred_path_blocks" : [
|
|
||||||
{
|
|
||||||
"cost" : 0,
|
|
||||||
"blocks" : [
|
|
||||||
"grass_path"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cost" : 1,
|
|
||||||
"blocks" : [
|
|
||||||
"cobblestone",
|
|
||||||
"stone",
|
|
||||||
"stonebrick",
|
|
||||||
"sandstone",
|
|
||||||
"mossy_cobblestone",
|
|
||||||
"stone_slab",
|
|
||||||
"stone_slab2",
|
|
||||||
"stone_slab3",
|
|
||||||
"stone_slab4",
|
|
||||||
"double_stone_slab",
|
|
||||||
"double_stone_slab2",
|
|
||||||
"double_stone_slab3",
|
|
||||||
"double_stone_slab4",
|
|
||||||
"wooden_slab",
|
|
||||||
"double_wooden_slab",
|
|
||||||
"planks",
|
|
||||||
"brick_block",
|
|
||||||
"nether_brick",
|
|
||||||
"red_nether_brick",
|
|
||||||
"end_bricks",
|
|
||||||
"red_sandstone",
|
|
||||||
"stained_glass",
|
|
||||||
"glass",
|
|
||||||
"glowstone",
|
|
||||||
"prismarine",
|
|
||||||
"emerald_block",
|
|
||||||
"diamond_block",
|
|
||||||
"lapis_block",
|
|
||||||
"gold_block",
|
|
||||||
"redstone_block",
|
|
||||||
"purple_glazed_terracotta",
|
|
||||||
"white_glazed_terracotta",
|
|
||||||
"orange_glazed_terracotta",
|
|
||||||
"magenta_glazed_terracotta",
|
|
||||||
"light_blue_glazed_terracotta",
|
|
||||||
"yellow_glazed_terracotta",
|
|
||||||
"lime_glazed_terracotta",
|
|
||||||
"pink_glazed_terracotta",
|
|
||||||
"gray_glazed_terracotta",
|
|
||||||
"silver_glazed_terracotta",
|
|
||||||
"cyan_glazed_terracotta",
|
|
||||||
"blue_glazed_terracotta",
|
|
||||||
"brown_glazed_terracotta",
|
|
||||||
"green_glazed_terracotta",
|
|
||||||
"red_glazed_terracotta",
|
|
||||||
"black_glazed_terracotta"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"cost" : 50,
|
|
||||||
"blocks" : [
|
|
||||||
"bed",
|
|
||||||
"lectern",
|
|
||||||
"composter",
|
|
||||||
"grindstone",
|
|
||||||
"blast_furnace",
|
|
||||||
"smoker",
|
|
||||||
"fletching_table",
|
|
||||||
"cartography_table",
|
|
||||||
"brewing_stand",
|
|
||||||
"smithing_table",
|
|
||||||
"cauldron",
|
|
||||||
"barrel",
|
|
||||||
"loom",
|
|
||||||
"stonecutter"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.target_when_pushed": {
|
|
||||||
"priority": 1,
|
|
||||||
"percent_chance": 5.0,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "monster" },
|
|
||||||
{ "test" : "is_family", "subject" : "other", "operator": "!=", "value" : "creeper" }
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.melee_attack": {
|
|
||||||
"priority": 1,
|
|
||||||
"track_target": true
|
|
||||||
},
|
|
||||||
"minecraft:behavior.move_towards_target": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 0.9,
|
|
||||||
"within_radius": 32
|
|
||||||
},
|
|
||||||
"minecraft:behavior.move_through_village": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 0.6,
|
|
||||||
"only_at_night": true
|
|
||||||
},
|
|
||||||
"minecraft:behavior.move_towards_dwelling_restriction": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.offer_flower": {
|
|
||||||
"priority": 5
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 0.6,
|
|
||||||
"xz_dist": 16
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 7,
|
|
||||||
"look_distance": 6.0,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 8
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 3,
|
|
||||||
"must_reach": true,
|
|
||||||
"must_see": true,
|
|
||||||
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "monster"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "creeper"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"within_default": 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "hoglin"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_difficulty",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "peaceful"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 16
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "zoglin"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_difficulty",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": "peaceful"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 16
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 2,
|
|
||||||
"entity_types": {
|
|
||||||
"filters": { "test": "is_family", "subject": "other", "operator": "!=", "value": "creeper" }
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:persistent": {
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:follow_range": {
|
|
||||||
"value": 64
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:from_player": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:player_created"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:from_village": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:village_created"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,30 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.8.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:lightning_bolt",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family":["lightning"]
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 80.0,
|
|
||||||
"max_dropped_ticks": 10,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,46 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:lingering_potion",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": false,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.25,
|
|
||||||
"height": 0.25
|
|
||||||
},
|
|
||||||
"minecraft:projectile": {
|
|
||||||
"on_hit": {
|
|
||||||
"douse_fire": { },
|
|
||||||
"spawn_aoe_cloud": {
|
|
||||||
"radius": 3.0,
|
|
||||||
"radius_on_use": -0.5,
|
|
||||||
"duration": 30,
|
|
||||||
"reapplication_delay": 40
|
|
||||||
},
|
|
||||||
"remove_on_hit": { }
|
|
||||||
},
|
|
||||||
"power": 0.5,
|
|
||||||
"gravity": 0.05,
|
|
||||||
"angle_offset": -20.0,
|
|
||||||
"hit_sound": "glass"
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 80.0,
|
|
||||||
"max_dropped_ticks": 5,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,722 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:llama",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:llama_baby": {
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": [
|
|
||||||
{
|
|
||||||
"item": "wheat",
|
|
||||||
"growth": 0.1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "hay_block",
|
|
||||||
"growth": 0.9
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:llama_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_bred": "Math.Random(1,7)",
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/llama.json"
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.9,
|
|
||||||
"height": 1.87
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:breedable": {
|
|
||||||
"require_tame": true,
|
|
||||||
"inherit_tamed": false,
|
|
||||||
"love_filters": { "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 1 }, // Wandering Trader Llamas can't fall in love
|
|
||||||
"breeds_with": {
|
|
||||||
"mate_type": "minecraft:llama",
|
|
||||||
"baby_type": "minecraft:llama",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"breed_items": [ "hay_block" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:llama_wandering_trader": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 1
|
|
||||||
},
|
|
||||||
"minecraft:on_friendly_anger": {
|
|
||||||
"event": "minecraft:defend_wandering_trader",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:environment_sensor": {
|
|
||||||
// If this is a Wandering Trader's llama and it was just released from its leash, make it tame
|
|
||||||
"triggers": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "is_leashed", "subject": "self", "value": false },
|
|
||||||
{ "test": "has_component", "subject": "self", "operator": "!=", "value" : "minecraft:is_tamed" }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:on_tame"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:persistent": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:strength_1": {
|
|
||||||
"minecraft:strength": {
|
|
||||||
"value": 1,
|
|
||||||
"max": 5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:strength_2": {
|
|
||||||
"minecraft:strength": {
|
|
||||||
"value": 2,
|
|
||||||
"max": 5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:strength_3": {
|
|
||||||
"minecraft:strength": {
|
|
||||||
"value": 3,
|
|
||||||
"max": 5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:strength_4": {
|
|
||||||
"minecraft:strength": {
|
|
||||||
"value": 4,
|
|
||||||
"max": 5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:strength_5": {
|
|
||||||
"minecraft:strength": {
|
|
||||||
"value": 5,
|
|
||||||
"max": 5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:llama_creamy": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:llama_white": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:llama_brown": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:llama_gray": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 3
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:llama_wild": {
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"player"
|
|
||||||
],
|
|
||||||
"interact_text": "action.interact.mount",
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 1.17, -0.3 ]
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:tamemount": {
|
|
||||||
"min_temper": 0,
|
|
||||||
"max_temper": 30,
|
|
||||||
"feed_text": "action.interact.feed",
|
|
||||||
"ride_text": "action.interact.mount",
|
|
||||||
"feed_items": [
|
|
||||||
{
|
|
||||||
"item": "wheat",
|
|
||||||
"temper_mod": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "hay_block",
|
|
||||||
"temper_mod": 6
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"auto_reject_items": [
|
|
||||||
{
|
|
||||||
"item": "horsearmorleather"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "horsearmoriron"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "horsearmorgold"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "horsearmordiamond"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "saddle"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tame_event": {
|
|
||||||
"event": "minecraft:on_tame",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
"minecraft:llama_tamed": {
|
|
||||||
"minecraft:is_tamed": {
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"crouching_skip_interact": true,
|
|
||||||
"family_types": [
|
|
||||||
"player"
|
|
||||||
],
|
|
||||||
"interact_text": "action.interact.ride.horse",
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 1.17, -0.3 ]
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:inventory": {
|
|
||||||
"inventory_size": 16,
|
|
||||||
"container_type": "horse",
|
|
||||||
"additional_slots_per_strength": 3
|
|
||||||
},
|
|
||||||
"minecraft:equippable": {
|
|
||||||
"slots": [
|
|
||||||
{
|
|
||||||
"slot": 1,
|
|
||||||
"item": "carpet",
|
|
||||||
"accepted_items": [ "carpet" ]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:llama_unchested": {
|
|
||||||
"minecraft:interact": {
|
|
||||||
"interactions": [
|
|
||||||
{
|
|
||||||
"play_sounds": "armor.equip_generic",
|
|
||||||
"on_interact": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test" : "has_equipment", "domain": "hand","subject" : "other", "value" : "chest"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:on_chest",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"interact_text": "action.interact.attachchest"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:llama_chested": {
|
|
||||||
"minecraft:is_chested": {
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:llama_angry": {
|
|
||||||
"minecraft:angry": {
|
|
||||||
"duration": 4,
|
|
||||||
"broadcast_anger": false,
|
|
||||||
"calm_event": {
|
|
||||||
"event": "minecraft:on_calm",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.ranged_attack": {
|
|
||||||
"priority": 2,
|
|
||||||
"attack_radius": 64,
|
|
||||||
"charge_shoot_trigger": 2,
|
|
||||||
"charge_charged_trigger": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:llama_angry_wolf": {
|
|
||||||
"minecraft:angry": {
|
|
||||||
"duration": -1,
|
|
||||||
"broadcast_anger": false,
|
|
||||||
"calm_event": {
|
|
||||||
"event": "minecraft:on_calm",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.ranged_attack": {
|
|
||||||
"priority": 2,
|
|
||||||
"attack_radius": 64,
|
|
||||||
"charge_shoot_trigger": 2,
|
|
||||||
"charge_charged_trigger": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:llama_defend_trader": {
|
|
||||||
"minecraft:angry": {
|
|
||||||
"duration": 10,
|
|
||||||
"calm_event": {
|
|
||||||
"event": "minecraft:on_calm",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.ranged_attack": {
|
|
||||||
"priority": 2,
|
|
||||||
"attack_radius": 64,
|
|
||||||
"charge_shoot_trigger": 2,
|
|
||||||
"charge_charged_trigger": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:in_caravan": {
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "all",
|
|
||||||
"deals_damage": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "llama", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 0
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": {
|
|
||||||
"range_min": 15,
|
|
||||||
"range_max": 30
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.25
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:follow_range": {
|
|
||||||
"value": 40,
|
|
||||||
"max": 40
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0,
|
|
||||||
"can_be_stolen": true
|
|
||||||
},
|
|
||||||
"minecraft:balloonable": {
|
|
||||||
},
|
|
||||||
"minecraft:healable": {
|
|
||||||
"items": [
|
|
||||||
{
|
|
||||||
"item": "wheat",
|
|
||||||
"heal_amount": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "hay_block",
|
|
||||||
"heal_amount": 10
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:shooter": {
|
|
||||||
"def": "minecraft:llama_spit"
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.run_around_like_crazy": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_caravan": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 2.1,
|
|
||||||
"entity_count": 10,
|
|
||||||
"entity_types": {
|
|
||||||
"filters": { "test" : "is_family", "subject" : "other", "value" : "llama"}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 7,
|
|
||||||
"look_distance": 6.0,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 8
|
|
||||||
},
|
|
||||||
"minecraft:behavior.mount_pathing": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.25,
|
|
||||||
"target_dist": 0.0,
|
|
||||||
"track_target": true
|
|
||||||
},
|
|
||||||
"minecraft:behavior.hurt_by_target": {
|
|
||||||
"priority": 1,
|
|
||||||
"hurt_owner": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "all",
|
|
||||||
"deals_damage": true,
|
|
||||||
"on_damage": {
|
|
||||||
"filters": { "test": "in_caravan", "value": false },
|
|
||||||
"event": "minecraft:become_angry"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 2,
|
|
||||||
"attack_interval": 16,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "wolf"},
|
|
||||||
{ "test" : "has_component","subject" : "other", "operator": "!=", "value" : "minecraft:is_tamed"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 10
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"must_see": false,
|
|
||||||
"must_reach": true
|
|
||||||
},
|
|
||||||
"minecraft:on_target_acquired": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "target", "value" : "wolf"},
|
|
||||||
{ "test" : "has_component","subject" : "target", "operator": "!=", "value" : "minecraft:is_tamed"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:mad_at_wolf",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:on_target_escape": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "target", "value" : "wolf"},
|
|
||||||
{ "test" : "has_component","subject" : "target", "operator": "!=", "value" : "minecraft:is_tamed"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:on_calm",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 90,
|
|
||||||
"trigger": "minecraft:spawn_adult"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 10,
|
|
||||||
"trigger": "minecraft:spawn_baby"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:from_wandering_trader": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_adult",
|
|
||||||
"minecraft:llama_wandering_trader"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"trigger": "minecraft:add_attributes"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_adult",
|
|
||||||
"minecraft:llama_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:on_tame": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_wild"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_tamed",
|
|
||||||
"minecraft:llama_unchested"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:join_caravan": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:in_caravan"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:leave_caravan": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:in_caravan"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:mad_at_wolf": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_angry_wolf"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:defend_wandering_trader": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_defend_trader"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:become_angry": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_angry"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:on_calm": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_angry",
|
|
||||||
"minecraft:llama_angry_wolf",
|
|
||||||
"minecraft:llama_defend_trader"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:on_chest": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_unchested"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_chested"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:add_attributes": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 32,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:strength_1"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 32,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:strength_2"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 32,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:strength_3"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 2,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:strength_4"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 2,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:strength_5"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 25,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_creamy"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 25,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_white"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 25,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_brown"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 25,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_gray"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:spawn_baby": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"trigger": "minecraft:add_attributes"
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:spawn_adult": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:llama_adult",
|
|
||||||
"minecraft:llama_wild"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"trigger": "minecraft:add_attributes"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,48 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:llama_spit",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": false,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
"components": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.31,
|
|
||||||
"height": 0.31
|
|
||||||
},
|
|
||||||
"minecraft:projectile": {
|
|
||||||
|
|
||||||
"on_hit": {
|
|
||||||
"impact_damage": {
|
|
||||||
"damage": 1,
|
|
||||||
"knockback": false
|
|
||||||
},
|
|
||||||
"remove_on_hit": { }
|
|
||||||
},
|
|
||||||
"power": 1.5,
|
|
||||||
"gravity": 0.06,
|
|
||||||
"inertia": 1,
|
|
||||||
"uncertainty_base": 10,
|
|
||||||
"uncertainty_multiplier": 4,
|
|
||||||
"anchor": 1,
|
|
||||||
"offset": [ 0, -0.1, 0 ],
|
|
||||||
"reflect_on_hurt": true
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 80.0,
|
|
||||||
"max_dropped_ticks": 7,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,203 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:magma_cube",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:slime_large": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 2.08,
|
|
||||||
"height": 2.08
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 16,
|
|
||||||
"max": 16
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.75
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 6
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/magma_cube.json"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:slime_medium": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 1.04,
|
|
||||||
"height": 1.02
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 4,
|
|
||||||
"max": 4
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.66
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 4
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/magma_cube.json"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:slime_small": {
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.52,
|
|
||||||
"height": 0.52
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 1,
|
|
||||||
"max": 1
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.6
|
|
||||||
},
|
|
||||||
"minecraft:attack": {
|
|
||||||
"damage": 2
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:slime_calm": {
|
|
||||||
"minecraft:movement.jump": {
|
|
||||||
"jump_delay": [ 2.0, 6.0 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:slime_aggressive": {
|
|
||||||
"minecraft:movement.jump": {
|
|
||||||
"jump_delay": [ 0.667, 2.0 ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? query.variant : 0"
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "magmacube", "monster", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0,
|
|
||||||
"breathes_lava": true
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:fire_immune": {
|
|
||||||
},
|
|
||||||
"minecraft:burns_in_daylight": false,
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "fall",
|
|
||||||
"deals_damage": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"avoid_water": true
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:movement.jump": {
|
|
||||||
"jump_delay": [ 2.0, 6.0 ]
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:on_target_acquired": {
|
|
||||||
"event": "minecraft:become_aggressive",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:on_target_escape": {
|
|
||||||
"event": "minecraft:become_calm",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.slime_float": {
|
|
||||||
"priority": 1,
|
|
||||||
"jump_chance_percentage": 0.8,
|
|
||||||
"speed_multiplier": 1.2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.slime_attack": {
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
"minecraft:behavior.slime_random_direction": {
|
|
||||||
"priority": 4,
|
|
||||||
"add_random_time_range": 3,
|
|
||||||
"turn_range": 360,
|
|
||||||
"min_change_direction_time": 2.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.slime_keep_on_jumping": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 2,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"any_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "player"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "irongolem"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 16
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"must_see": true
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:slime_calm"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:become_calm": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:slime_calm"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:become_aggressive": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:slime_aggressive"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.12.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:minecart",
|
|
||||||
"is_spawnable": false,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_stackable": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "minecart", "inanimate" ]
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.98,
|
|
||||||
"height": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:rail_movement": {
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"interact_text": "action.interact.ride.minecart",
|
|
||||||
"pull_in_entities": true,
|
|
||||||
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, -0.2, 0.0 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:rail_sensor": {
|
|
||||||
"eject_on_activate": true
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
"default_values": {
|
|
||||||
"max_optimized_distance": 60.0,
|
|
||||||
"max_dropped_ticks": 20,
|
|
||||||
"use_motion_prediction_hints": true
|
|
||||||
},
|
|
||||||
"conditional_values": [
|
|
||||||
{
|
|
||||||
"max_optimized_distance": 0.0,
|
|
||||||
"max_dropped_ticks": 0,
|
|
||||||
"conditional_values": [
|
|
||||||
{ "test": "is_moving", "subject": "self", "operator": "==", "value": true}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,760 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:mooshroom",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:mooshroom_become_cow": {
|
|
||||||
"minecraft:transformation": {
|
|
||||||
"into": "minecraft:cow"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:cow_baby": {
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value":0.5
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": "wheat",
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 1.1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:cow_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_bred": "Math.Random(1,7)",
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/mooshroom.json"
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:breedable": {
|
|
||||||
"require_tame": false,
|
|
||||||
"breed_items": "wheat",
|
|
||||||
"breeds_with": {
|
|
||||||
"mate_type": "minecraft:mooshroom",
|
|
||||||
"baby_type": "minecraft:mooshroom",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"deny_parents_variant": {
|
|
||||||
"chance": 0.00098, // Roughly 1/1024
|
|
||||||
"min_variant": 0,
|
|
||||||
"max_variant": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:interact": {
|
|
||||||
"interactions": [
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "bowl"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test" : "has_component", "operator": "!=", "value" : "minecraft:transformation"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:flowerless",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"add_items": {
|
|
||||||
"table": "loot_tables/gameplay/entities/mooshroom_milking.json"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"play_sounds": "milk_suspiciously",
|
|
||||||
"interact_text": "action.interact.moostew"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": { // allium
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:2"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
|
|
||||||
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 7}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:ate_allium",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"play_sounds": "eat",
|
|
||||||
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
|
|
||||||
"interact_text": "action.interact.feed"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": { // bluet
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:3"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
|
|
||||||
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 3}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:ate_bluet",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"play_sounds": "eat",
|
|
||||||
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
|
|
||||||
"interact_text": "action.interact.feed"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": { // orchid
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:1"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
|
|
||||||
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 6}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:ate_orchid",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"play_sounds": "eat",
|
|
||||||
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
|
|
||||||
"interact_text": "action.interact.feed"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": { // cornflower
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:9"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
|
|
||||||
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 1}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:ate_cornflower",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"play_sounds": "eat",
|
|
||||||
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
|
|
||||||
"interact_text": "action.interact.feed"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": { // Dandelion
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "yellow_flower"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
|
|
||||||
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 5}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:ate_dandelion",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"play_sounds": "eat",
|
|
||||||
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
|
|
||||||
"interact_text": "action.interact.feed"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": { // lily of the valley
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:10"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
|
|
||||||
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 4}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:ate_lily",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"play_sounds": "eat",
|
|
||||||
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
|
|
||||||
"interact_text": "action.interact.feed"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": { // daisy
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:8"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
|
|
||||||
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 8}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:ate_daisy",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"play_sounds": "eat",
|
|
||||||
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
|
|
||||||
"interact_text": "action.interact.feed"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": { // poppy
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:0"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
|
|
||||||
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 0}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:ate_poppy",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"play_sounds": "eat",
|
|
||||||
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
|
|
||||||
"interact_text": "action.interact.feed"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": { // tulips
|
|
||||||
"any_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:4"},
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:5"},
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:6"},
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "red_flower:7"}
|
|
||||||
],
|
|
||||||
"all_of": [
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
|
|
||||||
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 2}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:ate_tulip",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"play_sounds": "eat",
|
|
||||||
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
|
|
||||||
"interact_text": "action.interact.feed"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": { // rose
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "wither_rose"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"},
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1},
|
|
||||||
{ "test": "is_mark_variant", "subject": "self", "operator": "!=", "value": 9}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:ate_rose",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"play_sounds": "eat",
|
|
||||||
"particle_on_start": { "particle_type": "smoke", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
|
|
||||||
"interact_text": "action.interact.feed"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "shears"},
|
|
||||||
{ "test" : "has_component", "operator": "!=", "value" : "minecraft:transformation"},
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 0}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "become_cow",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": false,
|
|
||||||
"hurt_item": 1,
|
|
||||||
"play_sounds": "shear",
|
|
||||||
"spawn_items": { "table": "loot_tables/entities/mooshroom_shear.json" },
|
|
||||||
"particle_on_start": { "particle_type": "largeexplode", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
|
|
||||||
"interact_text": "action.interact.mooshear"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "shears"},
|
|
||||||
{ "test" : "has_component", "operator": "!=", "value" : "minecraft:transformation"},
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "become_cow",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": false,
|
|
||||||
"hurt_item": 1,
|
|
||||||
"play_sounds": "shear",
|
|
||||||
"spawn_items": { "table": "loot_tables/entities/brown_mooshroom_shear.json" },
|
|
||||||
"particle_on_start": { "particle_type": "largeexplode", "particle_y_offset": 0.25, "particle_offset_towards_interactor": true },
|
|
||||||
"interact_text": "action.interact.mooshear"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_interact": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "bucket:0"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"transform_to_item": "bucket:1",
|
|
||||||
"play_sounds": "milk",
|
|
||||||
"interact_text": "action.interact.milk"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mooshroom_fed_nothing": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": -1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mooshroom_brown_fed_poppy": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mooshroom_brown_fed_cornflower": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mooshroom_brown_fed_tulips": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 2
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mooshroom_brown_fed_azure_bluet": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 3
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mooshroom_brown_fed_lily_of_the_valley": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 4
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mooshroom_brown_fed_dandelion": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 5
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mooshroom_brown_fed_blue_orchid": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 6
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mooshroom_brown_fed_allium": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 7
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mooshroom_brown_fed_oxeye_daisy": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 8
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mooshroom_brown_fed_wither_rose": {
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": 9
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mooshroom_red": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mooshroom_brown": {
|
|
||||||
"minecraft:variant": {
|
|
||||||
"value": 1
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "mushroomcow", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:mark_variant": {
|
|
||||||
"value": -1
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.9,
|
|
||||||
"height": 1.3
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 10,
|
|
||||||
"max": 10
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.25
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"avoid_water": true,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:balloonable": {
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"zombie"
|
|
||||||
],
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 1.105, 0.0 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.25
|
|
||||||
},
|
|
||||||
"minecraft:behavior.mount_pathing": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 1.5,
|
|
||||||
"target_dist": 0.0,
|
|
||||||
"track_target": true
|
|
||||||
},
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.25,
|
|
||||||
"items": [
|
|
||||||
"wheat"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1.1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 0.8
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 7,
|
|
||||||
"look_distance": 6.0,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 9
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": [
|
|
||||||
{
|
|
||||||
"on_damage": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "lightning" },
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 0 }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:become_brown"
|
|
||||||
},
|
|
||||||
"deals_damage": false,
|
|
||||||
"on_damage_sound_event": "convert_mooshroom"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"on_damage": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "is_family", "subject": "other", "value": "lightning" },
|
|
||||||
{ "test": "is_variant", "subject": "self", "operator": "==", "value": 1 }
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:become_red"
|
|
||||||
},
|
|
||||||
"deals_damage": false,
|
|
||||||
"on_damage_sound_event": "convert_mooshroom"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"become_cow": {
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_become_cow"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 95,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cow_adult",
|
|
||||||
"minecraft:mooshroom_red"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 5,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cow_baby",
|
|
||||||
"minecraft:mooshroom_red"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cow_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cow_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:cow_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:flowerless": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_fed_nothing"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ate_allium": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown_fed_allium"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ate_cornflower": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown_fed_cornflower"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ate_lily": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown_fed_lily_of_the_valley"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ate_rose": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown_fed_wither_rose"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ate_orchid": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown_fed_blue_orchid"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ate_daisy": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown_fed_oxeye_daisy"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ate_tulip": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown_fed_tulips"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ate_bluet": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown_fed_azure_bluet"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ate_poppy": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown_fed_poppy"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ate_dandelion": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown_fed_dandelion"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:become_red": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_red",
|
|
||||||
"minecraft:mooshroom_fed_nothing"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:become_brown": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_red"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown",
|
|
||||||
"minecraft:mooshroom_fed_nothing"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:become_brown_adult": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_red"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown",
|
|
||||||
"minecraft:cow_adult",
|
|
||||||
"minecraft:mooshroom_fed_nothing"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:become_red_adult": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_brown",
|
|
||||||
"minecraft:cow_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mooshroom_red",
|
|
||||||
"minecraft:cow_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,444 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:mule",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:mule_baby": {
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:scale_by_age": {
|
|
||||||
"start_scale": 0.5,
|
|
||||||
"end_scale": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": [
|
|
||||||
{
|
|
||||||
"item": "wheat",
|
|
||||||
"growth": 0.016667
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "sugar",
|
|
||||||
"growth": 0.025
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "hay_block",
|
|
||||||
"growth": 0.15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "apple",
|
|
||||||
"growth": 0.05
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_carrot",
|
|
||||||
"growth": 0.05
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_apple",
|
|
||||||
"growth": 0.2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "appleEnchanted",
|
|
||||||
"growth": 0.2
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_parent": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mule_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/horse.json"
|
|
||||||
},
|
|
||||||
"minecraft:behavior.run_around_like_crazy": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.2
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mule_wild": {
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"player",
|
|
||||||
"zombie"
|
|
||||||
],
|
|
||||||
"interact_text": "action.interact.mount",
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 0.975, -0.2 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.mount_pathing": {
|
|
||||||
"priority": 2,
|
|
||||||
"speed_multiplier": 1.5,
|
|
||||||
"target_dist": 0.0,
|
|
||||||
"track_target": true
|
|
||||||
},
|
|
||||||
"minecraft:tamemount": {
|
|
||||||
"min_temper": 0,
|
|
||||||
"max_temper": 100,
|
|
||||||
"feed_text": "action.interact.feed",
|
|
||||||
"ride_text": "action.interact.mount",
|
|
||||||
"feed_items": [
|
|
||||||
{
|
|
||||||
"item": "wheat",
|
|
||||||
"temper_mod": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "sugar",
|
|
||||||
"temper_mod": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "apple",
|
|
||||||
"temper_mod": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_carrot",
|
|
||||||
"temper_mod": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_apple",
|
|
||||||
"temper_mod": 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "appleEnchanted",
|
|
||||||
"temper_mod": 10
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"auto_reject_items": [
|
|
||||||
{
|
|
||||||
"item": "horsearmorleather"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "horsearmoriron"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "horsearmorgold"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "horsearmordiamond"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "saddle"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"tame_event": {
|
|
||||||
"event": "minecraft:on_tame",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mule_tamed": {
|
|
||||||
"minecraft:is_tamed": {
|
|
||||||
},
|
|
||||||
"minecraft:equippable": {
|
|
||||||
"slots": [
|
|
||||||
{
|
|
||||||
"slot": 0,
|
|
||||||
"item": "saddle",
|
|
||||||
"accepted_items": [ "saddle" ],
|
|
||||||
"on_equip": {
|
|
||||||
"event": "minecraft:mule_saddled"
|
|
||||||
},
|
|
||||||
"on_unequip": {
|
|
||||||
"event": "minecraft:mule_unsaddled"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"crouching_skip_interact": true,
|
|
||||||
"family_types": [
|
|
||||||
"player"
|
|
||||||
],
|
|
||||||
"interact_text": "action.interact.ride.horse",
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 0.975, -0.2 ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:inventory": {
|
|
||||||
"inventory_size": 16,
|
|
||||||
"container_type": "horse"
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 5,
|
|
||||||
"speed_multiplier": 1.2,
|
|
||||||
"items": [
|
|
||||||
"apple",
|
|
||||||
"carrot",
|
|
||||||
"golden_apple",
|
|
||||||
"appleEnchanted",
|
|
||||||
"golden_carrot",
|
|
||||||
"carrotOnAStick",
|
|
||||||
"hay_block",
|
|
||||||
"sugar",
|
|
||||||
"bread",
|
|
||||||
"wheat"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mule_unchested": {
|
|
||||||
"minecraft:interact": {
|
|
||||||
"interactions": [
|
|
||||||
{
|
|
||||||
"play_sounds": "armor.equip_generic",
|
|
||||||
"on_interact": {
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{ "test": "has_equipment", "subject": "other", "domain": "hand", "value": "chest"},
|
|
||||||
{ "test" : "is_family", "subject" : "other", "value" : "player"}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"event": "minecraft:on_chest",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"use_item": true,
|
|
||||||
"interact_text": "action.interact.attachchest"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mule_chested": {
|
|
||||||
"minecraft:is_chested": {
|
|
||||||
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mule_saddled": {
|
|
||||||
"minecraft:is_saddled": {
|
|
||||||
},
|
|
||||||
"minecraft:input_ground_controlled": {
|
|
||||||
},
|
|
||||||
"minecraft:can_power_jump": {
|
|
||||||
},
|
|
||||||
"minecraft:behavior.player_ride_tamed": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "mule", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 1.4,
|
|
||||||
"height": 1.6
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": {
|
|
||||||
"range_min": 15,
|
|
||||||
"range_max": 30
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.175
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"avoid_water": true,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:horse.jump_strength": {
|
|
||||||
"value": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0
|
|
||||||
},
|
|
||||||
"minecraft:balloonable": {
|
|
||||||
},
|
|
||||||
"minecraft:healable": {
|
|
||||||
"items": [
|
|
||||||
{
|
|
||||||
"item": "wheat",
|
|
||||||
"heal_amount": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "sugar",
|
|
||||||
"heal_amount": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "hay_block",
|
|
||||||
"heal_amount": 20
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "apple",
|
|
||||||
"heal_amount": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_carrot",
|
|
||||||
"heal_amount": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "golden_apple",
|
|
||||||
"heal_amount": 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"item": "appleEnchanted",
|
|
||||||
"heal_amount": 10
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 7,
|
|
||||||
"look_distance": 6.0,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_look_around": {
|
|
||||||
"priority": 8
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 80,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mule_adult",
|
|
||||||
"minecraft:mule_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 20,
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mule_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mule_baby"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:on_tame": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mule_wild"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mule_tamed",
|
|
||||||
"minecraft:mule_unchested"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mule_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mule_adult",
|
|
||||||
"minecraft:mule_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:on_chest": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mule_unchested"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mule_chested"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:mule_saddled": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mule_saddled"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:mule_unsaddled": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:mule_saddled"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,138 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.13.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:npc",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "all",
|
|
||||||
"deals_damage": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "npc", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:fire_immune": true,
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/empty.json"
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.6,
|
|
||||||
"height": 2.1
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 0,
|
|
||||||
"look_distance": 6.0,
|
|
||||||
"probability": 0.02
|
|
||||||
},
|
|
||||||
"minecraft:persistent": {
|
|
||||||
},
|
|
||||||
"minecraft:npc": {
|
|
||||||
"npc_data": {
|
|
||||||
"portrait_offsets": {
|
|
||||||
"translate": [-7, 50, 0],
|
|
||||||
"scale": [1.75, 1.75, 1.75]
|
|
||||||
},
|
|
||||||
"picker_offsets": {
|
|
||||||
"translate": [0, 20, 0],
|
|
||||||
"scale": [1.7, 1.7, 1.7]
|
|
||||||
},
|
|
||||||
"skin_list": [
|
|
||||||
{
|
|
||||||
"variant": 0
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 1
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 2
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 3
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 4
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 5
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 6
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 7
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 8
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 9
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 10
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 11
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 12
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 13
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 14
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 15
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 16
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 17
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 18
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 19
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 20
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 21
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 22
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 23
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"variant": 24
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
"always_show": false,
|
|
||||||
"allow_name_tag_renaming": false
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -1,393 +0,0 @@
|
|||||||
{
|
|
||||||
"format_version": "1.16.0",
|
|
||||||
"minecraft:entity": {
|
|
||||||
"description": {
|
|
||||||
"identifier": "minecraft:ocelot",
|
|
||||||
"is_spawnable": true,
|
|
||||||
"is_summonable": true,
|
|
||||||
"is_experimental": false
|
|
||||||
},
|
|
||||||
|
|
||||||
"component_groups": {
|
|
||||||
"minecraft:ocelot_baby": {
|
|
||||||
"minecraft:is_baby": {
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 0.5
|
|
||||||
},
|
|
||||||
"minecraft:ageable": {
|
|
||||||
"duration": 1200,
|
|
||||||
"feed_items": [ "fish", "salmon" ],
|
|
||||||
"grow_up": {
|
|
||||||
"event": "minecraft:ageable_grow_up",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ocelot_adult": {
|
|
||||||
"minecraft:experience_reward": {
|
|
||||||
"on_bred": "Math.Random(1,7)",
|
|
||||||
"on_death": "query.last_hit_by_player ? Math.Random(1,3) : 0"
|
|
||||||
},
|
|
||||||
"minecraft:loot": {
|
|
||||||
"table": "loot_tables/entities/ocelot.json"
|
|
||||||
},
|
|
||||||
"minecraft:scale": {
|
|
||||||
"value": 1
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:ocelot_wild": {
|
|
||||||
"minecraft:trusting": {
|
|
||||||
"probability": 0.33,
|
|
||||||
"trust_items": [ "fish", "salmon" ],
|
|
||||||
"trust_event": {
|
|
||||||
"event": "minecraft:on_trust",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 0.5,
|
|
||||||
"within_radius": 16,
|
|
||||||
"can_get_scared": true,
|
|
||||||
"items": [
|
|
||||||
"fish",
|
|
||||||
"salmon"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.avoid_mob_type": {
|
|
||||||
"priority": 5,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "player"
|
|
||||||
},
|
|
||||||
"max_dist": 10,
|
|
||||||
"walk_speed_multiplier": 0.8,
|
|
||||||
"sprint_speed_multiplier": 1.33
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:rideable": {
|
|
||||||
"seat_count": 1,
|
|
||||||
"family_types": [
|
|
||||||
"zombie"
|
|
||||||
],
|
|
||||||
"seats": {
|
|
||||||
"position": [ 0.0, 0.35, 0.0 ]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:ocelot_trusting": {
|
|
||||||
"minecraft:behavior.breed": {
|
|
||||||
"priority": 3,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.tempt": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 0.5,
|
|
||||||
"within_radius": 16,
|
|
||||||
"items": [
|
|
||||||
"fish",
|
|
||||||
"salmon"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:breedable": {
|
|
||||||
"require_tame": false,
|
|
||||||
"breeds_with": {
|
|
||||||
"mate_type": "minecraft:ocelot",
|
|
||||||
"baby_type": "minecraft:ocelot",
|
|
||||||
"breed_event": {
|
|
||||||
"event": "minecraft:entity_born",
|
|
||||||
"target": "baby"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"breed_items": [ "fish", "salmon" ]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
// minecraft:ocelot_tame is only here for backwards compatibility purposes, ocelots are no longer tameable in Vanilla Minecraft
|
|
||||||
"minecraft:ocelot_tame": {
|
|
||||||
"minecraft:is_tamed": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 20,
|
|
||||||
"max": 20
|
|
||||||
},
|
|
||||||
"minecraft:sittable": {
|
|
||||||
},
|
|
||||||
"minecraft:behavior.follow_owner": {
|
|
||||||
"priority": 4,
|
|
||||||
"speed_multiplier": 1.0,
|
|
||||||
"start_distance": 10,
|
|
||||||
"stop_distance": 2
|
|
||||||
},
|
|
||||||
"minecraft:behavior.stay_while_sitting": {
|
|
||||||
"priority": 3
|
|
||||||
},
|
|
||||||
"minecraft:behavior.ocelot_sit_on_block": {
|
|
||||||
"priority": 6,
|
|
||||||
"speed_multiplier": 1.0
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"components": {
|
|
||||||
"minecraft:is_hidden_when_invisible": {
|
|
||||||
},
|
|
||||||
"minecraft:health": {
|
|
||||||
"value": 10,
|
|
||||||
"max": 10
|
|
||||||
},
|
|
||||||
"minecraft:hurt_on_condition": {
|
|
||||||
"damage_conditions": [
|
|
||||||
{
|
|
||||||
"filters": { "test": "in_lava", "subject": "self", "operator": "==", "value": true },
|
|
||||||
"cause": "lava",
|
|
||||||
"damage_per_tick": 4
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:attack_damage": {
|
|
||||||
"value": 4
|
|
||||||
},
|
|
||||||
"minecraft:nameable": {
|
|
||||||
},
|
|
||||||
"minecraft:type_family": {
|
|
||||||
"family": [ "ocelot", "mob" ]
|
|
||||||
},
|
|
||||||
"minecraft:breathable": {
|
|
||||||
"total_supply": 15,
|
|
||||||
"suffocate_time": 0
|
|
||||||
},
|
|
||||||
"minecraft:collision_box": {
|
|
||||||
"width": 0.6,
|
|
||||||
"height": 0.7
|
|
||||||
},
|
|
||||||
"minecraft:movement": {
|
|
||||||
"value": 0.3
|
|
||||||
},
|
|
||||||
"minecraft:navigation.walk": {
|
|
||||||
"can_path_over_water": true,
|
|
||||||
"avoid_water": true,
|
|
||||||
"avoid_damage_blocks": true
|
|
||||||
},
|
|
||||||
"minecraft:movement.basic": {
|
|
||||||
|
|
||||||
},
|
|
||||||
"minecraft:jump.static": {
|
|
||||||
},
|
|
||||||
"minecraft:can_climb": {
|
|
||||||
},
|
|
||||||
"minecraft:damage_sensor": {
|
|
||||||
"triggers": {
|
|
||||||
"cause": "fall",
|
|
||||||
"deals_damage": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:despawn": {
|
|
||||||
"despawn_from_distance": {}
|
|
||||||
},
|
|
||||||
"minecraft:behavior.float": {
|
|
||||||
"priority": 0
|
|
||||||
},
|
|
||||||
"minecraft:behavior.panic": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.25
|
|
||||||
},
|
|
||||||
"minecraft:behavior.nearest_attackable_target": {
|
|
||||||
"priority": 1,
|
|
||||||
"reselect_targets": true,
|
|
||||||
"entity_types": [
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "chicken"
|
|
||||||
},
|
|
||||||
"max_dist": 8
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"filters": {
|
|
||||||
"all_of": [
|
|
||||||
{
|
|
||||||
"test": "is_family",
|
|
||||||
"subject": "other",
|
|
||||||
"value": "baby_turtle"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"test": "in_water",
|
|
||||||
"subject": "other",
|
|
||||||
"operator": "!=",
|
|
||||||
"value": true
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"max_dist": 8
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"minecraft:behavior.mount_pathing": {
|
|
||||||
"priority": 1,
|
|
||||||
"speed_multiplier": 1.25,
|
|
||||||
"target_dist": 0,
|
|
||||||
"track_target": true
|
|
||||||
},
|
|
||||||
"minecraft:behavior.leap_at_target": {
|
|
||||||
"priority": 3,
|
|
||||||
"target_dist": 0.3
|
|
||||||
},
|
|
||||||
"minecraft:behavior.ocelotattack": {
|
|
||||||
"priority": 4,
|
|
||||||
"cooldown_time": 1.0,
|
|
||||||
"x_max_rotation": 30.0,
|
|
||||||
"y_max_head_rotation": 30.0,
|
|
||||||
"max_distance": 15.0,
|
|
||||||
"max_sneak_range": 15.0,
|
|
||||||
"max_sprint_range": 4.0,
|
|
||||||
"reach_multiplier": 2.0,
|
|
||||||
"sneak_speed_multiplier": 0.6,
|
|
||||||
"sprint_speed_multiplier": 1.33,
|
|
||||||
"walk_speed_multiplier": 0.8
|
|
||||||
},
|
|
||||||
"minecraft:behavior.random_stroll": {
|
|
||||||
"priority": 8,
|
|
||||||
"speed_multiplier": 0.8
|
|
||||||
},
|
|
||||||
"minecraft:behavior.look_at_player": {
|
|
||||||
"priority": 9
|
|
||||||
},
|
|
||||||
"minecraft:leashable": {
|
|
||||||
"soft_distance": 4.0,
|
|
||||||
"hard_distance": 6.0,
|
|
||||||
"max_distance": 10.0,
|
|
||||||
"on_leash": {
|
|
||||||
"event": "minecraft:on_leash",
|
|
||||||
"target": "self"
|
|
||||||
},
|
|
||||||
"on_unleash": {
|
|
||||||
"event": "minecraft:on_unleash",
|
|
||||||
"target": "self"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:physics": {
|
|
||||||
},
|
|
||||||
"minecraft:pushable": {
|
|
||||||
"is_pushable": true,
|
|
||||||
"is_pushable_by_piston": true
|
|
||||||
},
|
|
||||||
"minecraft:conditional_bandwidth_optimization": {
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"events": {
|
|
||||||
"minecraft:entity_spawned": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"randomize": [
|
|
||||||
{
|
|
||||||
"weight": 3,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:ocelot_adult",
|
|
||||||
"minecraft:ocelot_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"weight": 1,
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:ocelot_baby",
|
|
||||||
"minecraft:ocelot_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:entity_born": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"remove": {
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:ocelot_baby",
|
|
||||||
"minecraft:ocelot_trusting"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:entity_born_wild": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:ocelot_trusting"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:ocelot_baby",
|
|
||||||
"minecraft:ocelot_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
"minecraft:ageable_grow_up": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:ocelot_baby"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:ocelot_adult"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:on_trust": {
|
|
||||||
"sequence": [
|
|
||||||
{
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:ocelot_wild"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:ocelot_trusting"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
// Leashing and unleashing are only here for backwards compatibility purposes, ocelots are no longer leashable in Vanilla Minecraft
|
|
||||||
"minecraft:on_leash": {
|
|
||||||
"add": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:ocelot_leashed"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"minecraft:on_unleash": {
|
|
||||||
"remove": {
|
|
||||||
"component_groups": [
|
|
||||||
"minecraft:ocelot_leashed"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user