Skip to content

Instantly share code, notes, and snippets.

@riddle
Created June 18, 2016 14:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save riddle/326f8de3c9953f61b44249f3fe6c2ff7 to your computer and use it in GitHub Desktop.
Save riddle/326f8de3c9953f61b44249f3fe6c2ff7 to your computer and use it in GitHub Desktop.
{
"version": 0.1,
"definitions": {
"mob.creeper": {
"width": 0.6,
"height": 1.8,
"lootTable": "entities/creeper",
"onSpawn": {
"probability": 0.75,
"action": "setState Age:baby"
},
"attributes": {
"health": 20,
"movementSpeed": 0.2
},
"sounds": {
"hurt": {
"sound": "mob.creeper",
"volume": 1,
"pitch": [ 0.8, 1.2 ]
},
"death": {
"sound": "mob.creeperdeath",
"volume": 1,
"pitch": [ 0.8, 1.2 ]
}
},
"goals": [
{
"pri": 1,
"name": "Float"
},
{
"pri": 2,
"name": ""
},
{
"pri": 3,
"name": "AvoidMobType",
"entity_type": "Ocelot",
"max_dist": 6,
"walk_speed_modifier": 1,
"sprint_speed_modifier": 1.2
},
{
"pri": 4,
"name": "MeleeAttack",
"speed_modifier": 1.25,
"track_target": false
},
{
"pri": 5,
"name": "RandomStroll",
"speed_modifier": 1.0
},
{
"pri": 6,
"name": "LookAtPlayer",
"look_distance": 8
},
{
"pri": 6,
"name": "RandomLookAround"
},
],
"targets": [
{
"priority": 1,
"name": "NearestAttackableTarget",
"entity_type": "undefined",
"within_default": 16,
"must_see": true
},
{
"priority": 2,
"name": "HurtByTarget"
}
],
"state_machines": [
{
"name": "Age",
"states" : {
"adult": {
"default": true,
"explode": {
"power": 3
}
},
"baby": {
"width": 0.15,
"height": 0.35,
"ageable": {
"duration": 60,
"onGrownUp": "setState Age:adult"
},
"explode": {
"power": 1
}
}
}
},
{
"name": "Type",
"states": {
"normal" : {
"default": true,
"onIgnite": "setState Type:ignited"
},
"ignited": {
"onTargetEscape": "setState Type:normal",
"explode": {
"fuseLength": 1.5,
"fuseLit": true,
"causesFire": false
}
}
}
}
]
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment