-
Notifications
You must be signed in to change notification settings - Fork 10
ZenUtilsEntityDefinition
youyihj edited this page Apr 7, 2024
·
1 revision
ZenUtilsEntity is an expansion of IEntityDefinition (crafttweaker.entity.IEntityDefinition
). For now, it only adds a way to add tick function to a specific entity definition.
// entityDef.onTick(IEntityTick tickFunction, @Optional int interval);
// IEntityTick is a function handles an IEntity and returns nothing. The function is called at specified intervals for entities of a particular type.
<entity:minecraft:creeper>.onTick(function(entity) {
// the function is only called on server side. No need to check world.remote
print("creeper? " ~ entity.world.time);
}, 50);
- GlobalFunctions
- ScriptReloading
- SuppressErrorPreprocessor
- HardFailPreprocessor
- OrderlyMap
- IData Deep Update
- Template String
- Native Method Access
- Mixin
- CrTI18n
- CrTUUID
- CrTItemHandler
- CrTLiquidHandler
- ILiquidTankProperties
- StringList
- HexHelper
- StaticString
- Catenation
- PersistedCatenation
- PlayerStat
- IStatFormatter
- GameRuleHelper
- ZenCommand
- ZenCommandTree
- ZenUtilsCommandSender
- IGetCommandUsage
- ICommandExecute
- IGetTabCompletion
- CommandUtils