This site works best with JavaScript enabled. Please enable JavaScript to get the best experience from this site.
I recently started programming an Add-on for MCPE 1.2 but instead
of changing the entities in the game i am going to add my own entities
so i copy/paste some files and started editing, for the most part its pretty self
explanatory but i went into the zombie.json copied entity file and found a piece of code
that i do not understand very much. i need to understand what ("priority") is and the
purpose of (minecraft:behavior) methods, the code can be found below at the end of post.
if you know anything about these pieces of code please let me know because
as an aspiring Modder of the Minecraft Community i want my mods to be quality
and not just replacing the games default items, so i will do whatever it takes to ensure
that the mod comes out exactly the way that i want it to.
Thank you for taking the time to read and Possibly help me out.
here is the code:
// Zombie Behaviors "minecraft:behavior.float": { "priority": 0 }, "minecraft:behavior.break_door": { "priority": 1 }, "minecraft:behavior.hurt_by_target": { "priority": 3 }, "minecraft:behavior.melee_attack": { "priority": 3, "speed_multiplier": 1, "track_target": false }, "minecraft:behavior.move_towards_restriction": { "priority": 4, "speed_multiplier": 1 },
I recently started programming an Add-on for MCPE 1.2 but instead
of changing the entities in the game i am going to add my own entities
so i copy/paste some files and started editing, for the most part its pretty self
explanatory but i went into the zombie.json copied entity file and found a piece of code
that i do not understand very much. i need to understand what ("priority") is and the
purpose of (minecraft:behavior) methods, the code can be found below at the end of post.
if you know anything about these pieces of code please let me know because
as an aspiring Modder of the Minecraft Community i want my mods to be quality
and not just replacing the games default items, so i will do whatever it takes to ensure
that the mod comes out exactly the way that i want it to.
Thank you for taking the time to read and Possibly help me out.
here is the code:
// Zombie Behaviors
"minecraft:behavior.float": {
"priority": 0
},
"minecraft:behavior.break_door": {
"priority": 1
},
"minecraft:behavior.hurt_by_target": {
"priority": 3
},
"minecraft:behavior.melee_attack": {
"priority": 3,
"speed_multiplier": 1,
"track_target": false
},
"minecraft:behavior.move_towards_restriction": {
"priority": 4,
"speed_multiplier": 1
},