Jump to content

Temps Pi

Members
  • Posts

    8
  • Joined

  • Last visited

Posts posted by Temps Pi

  1.     @Override
        public void updateTick(World world, BlockPos pos, IBlockState state, Random rand){
            if(!world.isRemote){
                this.growthBoost(world, pos, state);
                this.getTileEntityInAABB(world, -10,10,-10,10,-10,10);
            }
        }
    
    
        public static List<TileEntity> getTileEntityInAABB(World world, int minX, int maxX, int minY, int maxY, int minZ, int maxZ) {
            List<TileEntity> telist = new ArrayList<TileEntity>();
            for (double y = minY; y < maxY; ++y) {
                for (double x = minX; x < maxX; ++x) {
                    for (double z = minZ; z < maxZ; ++z) {
                        TileEntity te = world.getTileEntity(new BlockPos(x, y, z));
                        if (te != null) { telist.add(te); }
                    }
                }
            }
            System.out.println("test---"+telist);
            return telist;
        }

     

    So that's what i have so far, tried some printing but it seems that i get an empty list

  2. Hi everyone,

     

    So i'm trying to start some minecraft modding, one of the things i'd like to create is a block capable of increasing or decreasing amount of ticks in a determinated range.

    I made some research but I did'nt find anything about it, any help ?

     

    I also added a staff capable of throwing an entity which applies a potion effect (wither) on the hited target but sadly the thrower also takes wither effects (black hearts) but this wither effect doesn't harm him and I can't figure out how to avoid giving this effect to the thrower. 

     

    Thanks for reading !

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.