Created
June 18, 2016 15:01
-
-
Save riddle/a3ab82b87dad05c81d27260d7c2f27d5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version": 0.1, | |
"definitions": { | |
"mob.cow": { | |
"width": 0.6, | |
"height": 0.8, | |
"lootTable": "entities/cow", | |
"onIgnite": "setState Type:ignited", | |
"onSpawn": { | |
"probability": 0.05, | |
"action": "setState Age:baby" | |
}, | |
"attributes": { | |
"health": 100, | |
"movementSpeed": 0.2 | |
}, | |
"sounds": { | |
"hurtSound": { | |
"sound": "mob.cow.hurt", | |
"volume": 1, | |
"pitch": [ | |
0.8, | |
1.2 | |
] | |
}, | |
"ambientSound": { | |
"sound": "mob.cow.say", | |
"volume": 1, | |
"pitch": [ | |
0.8, | |
1.2 | |
] | |
}, | |
"deathSound": { | |
"sound": "mob.cow.hurt", | |
"volume": 1, | |
"pitch": [ | |
0.8, | |
1.2 | |
] | |
} | |
}, | |
"goals": [ | |
{ | |
"name": "Float" | |
}, | |
{ | |
"name": "Panic", | |
"speed": 2 | |
}, | |
{ | |
"name": "MountPathing", | |
"speed": 1.5, | |
"target_dist": 0, | |
"track_target": true | |
}, | |
{ | |
"name": "Breed", | |
"speed": 1 | |
}, | |
{ | |
"name": "Tempt", | |
"speed": 1.25, | |
"items": [ | |
"seeds" | |
], | |
"can_get_scared": false | |
}, | |
{ | |
"name": "FolowParent", | |
"speed": 1.1 | |
}, | |
{ | |
"name": "RandomStroll", | |
"speed_modifier": 0.8 | |
}, | |
{ | |
"name": "LookAtPlayer", | |
"look_distance": 6 | |
}, | |
{ | |
"name": "RandomLookAround" | |
} | |
], | |
"state_machines": [ | |
{ | |
"name": "Age", | |
"states": { | |
"adult": { | |
"default": true, | |
"breedable": { | |
"requireTame": false, | |
"breedItems": "wheat", | |
"onBred": "spawn mob.cow Age:baby" | |
} | |
}, | |
"baby": { | |
"width": 0.45, | |
"height": 0.65, | |
"ageable": { | |
"duration": 60, | |
"onGrownUp": "setState Age:adult" | |
} | |
} | |
} | |
}, | |
{ | |
"name": "Type", | |
"states": { | |
"normal": { | |
"default": true | |
}, | |
"ignited": { | |
"explode": { | |
"fuseLength": 1.5, | |
"fuseLit": true, | |
"power": 4, | |
"causesFire": true | |
} | |
} | |
} | |
} | |
] | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment