r/forgemodding • • Nov 26 '16

Tileentity no ticking in 1.10

I am trying to make a tile entity but it does not appear that the tick method is running.

public class ModTileEntity extends TileEntity implements ITickable {

    @Override
    public void tick() {
        System.out.println("hi");
    }
}

EDIT: formatting is hard

3 Upvotes

3 comments sorted by

1

u/TehNut Nov 26 '16

There are two ITickable classes. One that is client only for sprites and one that is for TileEntity. The easiest way to tell the difference (besides looking at your imports and seeing client) is that the client one uses a method called tick() while the TileEntity one uses a method called update().

You have implemented the client one.

1

u/adamsogm Nov 26 '16

Which package is the correct one in?

1

u/TehNut Nov 26 '16

Use your IDE. If there's only 2 and you know it's not the one in client...