Skip to content

Instantly share code, notes, and snippets.

@erichexter
Last active December 7, 2018 22:56
Show Gist options
  • Save erichexter/419754aabe1b5d6e3781221b7dd1f5cd to your computer and use it in GitHub Desktop.
Save erichexter/419754aabe1b5d6e3781221b7dd1f5cd to your computer and use it in GitHub Desktop.
{
"format_version": "1.8.0",
"minecraft:entity": {
"description": {
"identifier": "economy:banker",
"is_spawnable": true,
"is_summonable": true,
"is_experimental": false
},
"component_groups": {
"economy":{
"minecraft:type_family": {
"family":[ "npc" ]
},
"minecraft:variant": {
"value": 0
},
"minecraft:trade_table": {
"display_name": "entity.villager.fisherman",
"table": "trading/fisherman_trades.json"
}
}
},
"components": {
"minecraft:breathable": {
"totalSupply": 15,
"suffocateTime": 0
},
"minecraft:nameable": {
},
"minecraft:health": {
"value": 26,
"max": 26
},
"minecraft:navigation.walk": {
"can_path_over_water": true,
"avoid_water": false
},
"minecraft:movement.basic": {
},
"minecraft:behavior.float": {
"priority": 1
},
"minecraft:behavior.trade_with_player": {
"priority": 1
},
"minecraft:behavior.look_at_trading_player": {
"priority": 2
},
"minecraft:behavior.look_at_player": {
"priority": 3,
"look_distance": 8.0
},
"minecraft:behavior.random_look_around": {
"priority": 3,
"look_distance": 8.0
},
"minecraft:type_family": {
"family": [ "npc", "economy" ]
},
"minecraft:physics": {
}
},
"events":{
"minecraft:entity_spawned": {
"sequence": [
{
"filters": { "test": "has_component", "operator": "!=", "value": "minecraft:variant" },
"randomize": [
{
"weight": 100,
"add": { "component_groups": [ "economy" ] }
}
]
}
]
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment