Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (Level.getTime()%10==0)
- {
- CobaltFilter.forEach(function(filter){
- mob = Entity.getAll()
- for (var i=0;i<mob.length;i++)
- {
- xx = Entity.getX(mob[i])-filter.x
- yy = Entity.getY(mob[i])-filter.y
- zz = Entity.getZ(mob[i])-filter.z
- if (Entity.getType(mob[i]==EntityType.ITEM))
- if (xx*xx+yy*yy+zz*zz<1.01*1.01)
- {
- item = {id: Entity.getEntityItemId(mob[i]),count: Entity.getEntityItemCount(mob[i]), damage:Entity.getEntityItemData(mob[i])}
- if (var hz + 1;hz<26;hz++)
- {
- CobaltBots.forEach(function(bots){
- if (bots.prototypex==filter.x&&bots.prototypey==filter.y&&bots.prototypez==filter.z)
- {
- if (bots.hz==hz)
- }
- })
- }
- }
- }
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement