zombies.push(e)
}
}
then write a function that identifies when the zombies are close to the spiders
and then write the loop for it to make it work on all of them
Then u know just do Entity.setTarget on both of this two
did not even try this yet but i thnk it will work i hope lol
0
Hey Guys The New Update Is Up!!
0
i think u misunderstood me bruh
0
use the Entity.setTarget function
or just make an array of the attacker and the victims
just like this
var zombies = []
var spiders = []
function entityAddedHook(e){
if(Entity.getEntityTypeId(e)==35){
spiders.push(e)
}
if(Entity.getEntityTypeId(e)==32){
zombies.push(e)
}
}
then write a function that identifies when the zombies are close to the spiders
and then write the loop for it to make it work on all of them
Then u know just do Entity.setTarget on both of this two
did not even try this yet but i thnk it will work i hope lol
0
using the Entity.setTarget Ehh? haha
1
Ah finally been waiting man.
0
yep use this
ModPE.setItem(900,"stick",0,"Stick Of DOOM",1)
function attackHook(a,v){
if(getCarriedItem()==900){
Entity.addEffect(v,MobEffect.poison,5*20,1)
}}
0
Semi-colons arent gonna mess it up
and yes you did not define the mob and change the ' to ".
0
Already fixed it tho
0
To make it more sensitive that just a simple step in it the function will be called Use this
var px = Player.getX()
var py = Player.getY()
var pz = Player.getZ()
var floor = Math.floor
function modTick(){
if(Level.getTile(floor(px),floor(py),floor(pz))==//blockId){
//What it will do
}}
0
Update will be done if armor doesnt bug out anymore Guys
0
need any help on some things?
0
yes
0
tnx for the review
0
Ohh. ok haha
0
Wut? xD