Add Bow Damge and Fire #22
@ -33,15 +33,16 @@ public abstract class REntity {
|
||||
|
||||
public static void tickFire() {
|
||||
getEntities().forEach((integer, entity) -> {
|
||||
if(entity.fireTick > 0)
|
||||
if(entity.fireTick > 0) {
|
||||
entity.fireTick--;
|
||||
if(entity.fireTick == 0) {
|
||||
DataWatcher dataWatcher = new DataWatcher(null);
|
||||
if(entity.fireTick == 0) {
|
||||
Chaoscaot markierte diese Unterhaltung als gelöst
Veraltet
|
||||
DataWatcher dataWatcher = new DataWatcher(null);
|
||||
|
||||
DataWatcherObject<Byte> dataWatcherObject = new DataWatcherObject<>(0, DataWatcherRegistry.a);
|
||||
dataWatcher.register(dataWatcherObject, (byte) 0);
|
||||
dataWatcher.markDirty(dataWatcherObject);
|
||||
entity.sendDataWatcher(dataWatcher);
|
||||
DataWatcherObject<Byte> dataWatcherObject = new DataWatcherObject<>(0, DataWatcherRegistry.a);
|
||||
dataWatcher.register(dataWatcherObject, (byte) 0);
|
||||
dataWatcher.markDirty(dataWatcherObject);
|
||||
entity.sendDataWatcher(dataWatcher);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren
Du schickst jeden Tick, wenn eine Entity nicht brennt?