Skip to content

Commit

Permalink
add more scripting
Browse files Browse the repository at this point in the history
  • Loading branch information
olebeck committed Sep 9, 2023
1 parent 05acfe1 commit cb2d995
Show file tree
Hide file tree
Showing 6 changed files with 638 additions and 12 deletions.
25 changes: 19 additions & 6 deletions handlers/worlds/entity.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import (
"github.com/sandertv/gophertunnel/minecraft/protocol"
"github.com/sandertv/gophertunnel/minecraft/protocol/packet"
"github.com/sirupsen/logrus"
"golang.org/x/exp/maps"
)

type entityState struct {
Expand Down Expand Up @@ -89,14 +90,14 @@ func (w *worldsHandler) processAddActor(pk *packet.AddActor) {
e.HeadYaw = pk.HeadYaw
e.Velocity = pk.Velocity

for k, v := range pk.EntityMetadata {
e.Metadata[k] = v
}
metadata := make(protocol.EntityMetadata)
maps.Copy(metadata, pk.EntityMetadata)
e.Metadata = metadata

if w.scripting.CB.OnEntityAdd != nil {
var ignore bool
err := recovery.Call(func() error {
ignore = w.scripting.CB.OnEntityAdd(e)
w.scripting.OnEntityAdd(e, e.Metadata)
return nil
})
if err != nil {
Expand Down Expand Up @@ -332,11 +333,23 @@ func (w *worldsHandler) handleEntityPackets(pk packet.Packet) packet.Packet {
case *packet.SetActorData:
e, ok := w.getEntity(pk.EntityRuntimeID)
if ok {
e.Metadata = pk.EntityMetadata
metadata := make(protocol.EntityMetadata)
maps.Copy(metadata, pk.EntityMetadata)
if w.scripting.CB.OnEntityDataUpdate != nil {
err := recovery.Call(func() error {
w.scripting.OnEntityDataUpdate(e, metadata)
return nil
})
if err != nil {
logrus.Errorf("Scripting %s", err)
}
}

e.Metadata = metadata
w.bp.AddEntity(behaviourpack.EntityIn{
Identifier: e.EntityType,
Attr: nil,
Meta: pk.EntityMetadata,
Meta: metadata,
})
}
case *packet.SetActorMotion:
Expand Down
253 changes: 253 additions & 0 deletions handlers/worlds/scripting/enums.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,253 @@
var EntityDataKey;
(function (EntityDataKey) {
EntityDataKey[EntityDataKey["Flags"] = 0] = "Flags";
EntityDataKey[EntityDataKey["StructuralIntegrity"] = 1] = "StructuralIntegrity";
EntityDataKey[EntityDataKey["Variant"] = 2] = "Variant";
EntityDataKey[EntityDataKey["ColorIndex"] = 3] = "ColorIndex";
EntityDataKey[EntityDataKey["Name"] = 4] = "Name";
EntityDataKey[EntityDataKey["Owner"] = 5] = "Owner";
EntityDataKey[EntityDataKey["Target"] = 6] = "Target";
EntityDataKey[EntityDataKey["AirSupply"] = 7] = "AirSupply";
EntityDataKey[EntityDataKey["EffectColor"] = 8] = "EffectColor";
EntityDataKey[EntityDataKey["EffectAmbience"] = 9] = "EffectAmbience";
EntityDataKey[EntityDataKey["JumpDuration"] = 10] = "JumpDuration";
EntityDataKey[EntityDataKey["Hurt"] = 11] = "Hurt";
EntityDataKey[EntityDataKey["HurtDirection"] = 12] = "HurtDirection";
EntityDataKey[EntityDataKey["RowTimeLeft"] = 13] = "RowTimeLeft";
EntityDataKey[EntityDataKey["RowTimeRight"] = 14] = "RowTimeRight";
EntityDataKey[EntityDataKey["Value"] = 15] = "Value";
EntityDataKey[EntityDataKey["DisplayTileRuntimeID"] = 16] = "DisplayTileRuntimeID";
EntityDataKey[EntityDataKey["DisplayOffset"] = 17] = "DisplayOffset";
EntityDataKey[EntityDataKey["CustomDisplay"] = 18] = "CustomDisplay";
EntityDataKey[EntityDataKey["Swell"] = 19] = "Swell";
EntityDataKey[EntityDataKey["OldSwell"] = 20] = "OldSwell";
EntityDataKey[EntityDataKey["SwellDirection"] = 21] = "SwellDirection";
EntityDataKey[EntityDataKey["ChargeAmount"] = 22] = "ChargeAmount";
EntityDataKey[EntityDataKey["CarryBlockRuntimeID"] = 23] = "CarryBlockRuntimeID";
EntityDataKey[EntityDataKey["ClientEvent"] = 24] = "ClientEvent";
EntityDataKey[EntityDataKey["UsingItem"] = 25] = "UsingItem";
EntityDataKey[EntityDataKey["PlayerFlags"] = 26] = "PlayerFlags";
EntityDataKey[EntityDataKey["PlayerIndex"] = 27] = "PlayerIndex";
EntityDataKey[EntityDataKey["BedPosition"] = 28] = "BedPosition";
EntityDataKey[EntityDataKey["PowerX"] = 29] = "PowerX";
EntityDataKey[EntityDataKey["PowerY"] = 30] = "PowerY";
EntityDataKey[EntityDataKey["PowerZ"] = 31] = "PowerZ";
EntityDataKey[EntityDataKey["AuxPower"] = 32] = "AuxPower";
EntityDataKey[EntityDataKey["FishX"] = 33] = "FishX";
EntityDataKey[EntityDataKey["FishZ"] = 34] = "FishZ";
EntityDataKey[EntityDataKey["FishAngle"] = 35] = "FishAngle";
EntityDataKey[EntityDataKey["AuxValueData"] = 36] = "AuxValueData";
EntityDataKey[EntityDataKey["LeashHolder"] = 37] = "LeashHolder";
EntityDataKey[EntityDataKey["Scale"] = 38] = "Scale";
EntityDataKey[EntityDataKey["HasNPC"] = 39] = "HasNPC";
EntityDataKey[EntityDataKey["NPCData"] = 40] = "NPCData";
EntityDataKey[EntityDataKey["Actions"] = 41] = "Actions";
EntityDataKey[EntityDataKey["AirSupplyMax"] = 42] = "AirSupplyMax";
EntityDataKey[EntityDataKey["MarkVariant"] = 43] = "MarkVariant";
EntityDataKey[EntityDataKey["ContainerType"] = 44] = "ContainerType";
EntityDataKey[EntityDataKey["ContainerSize"] = 45] = "ContainerSize";
EntityDataKey[EntityDataKey["ContainerStrengthModifier"] = 46] = "ContainerStrengthModifier";
EntityDataKey[EntityDataKey["BlockTarget"] = 47] = "BlockTarget";
EntityDataKey[EntityDataKey["Inventory"] = 48] = "Inventory";
EntityDataKey[EntityDataKey["TargetA"] = 49] = "TargetA";
EntityDataKey[EntityDataKey["TargetB"] = 50] = "TargetB";
EntityDataKey[EntityDataKey["TargetC"] = 51] = "TargetC";
EntityDataKey[EntityDataKey["AerialAttack"] = 52] = "AerialAttack";
EntityDataKey[EntityDataKey["Width"] = 53] = "Width";
EntityDataKey[EntityDataKey["Height"] = 54] = "Height";
EntityDataKey[EntityDataKey["FuseTime"] = 55] = "FuseTime";
EntityDataKey[EntityDataKey["SeatOffset"] = 56] = "SeatOffset";
EntityDataKey[EntityDataKey["SeatLockPassengerRotation"] = 57] = "SeatLockPassengerRotation";
EntityDataKey[EntityDataKey["SeatLockPassengerRotationDegrees"] = 58] = "SeatLockPassengerRotationDegrees";
EntityDataKey[EntityDataKey["SeatRotationOffset"] = 59] = "SeatRotationOffset";
EntityDataKey[EntityDataKey["SeatRotationOffstDegrees"] = 60] = "SeatRotationOffstDegrees";
EntityDataKey[EntityDataKey["DataRadius"] = 61] = "DataRadius";
EntityDataKey[EntityDataKey["DataWaiting"] = 62] = "DataWaiting";
EntityDataKey[EntityDataKey["DataParticle"] = 63] = "DataParticle";
EntityDataKey[EntityDataKey["PeekID"] = 64] = "PeekID";
EntityDataKey[EntityDataKey["AttachFace"] = 65] = "AttachFace";
EntityDataKey[EntityDataKey["Attached"] = 66] = "Attached";
EntityDataKey[EntityDataKey["AttachedPosition"] = 67] = "AttachedPosition";
EntityDataKey[EntityDataKey["TradeTarget"] = 68] = "TradeTarget";
EntityDataKey[EntityDataKey["Career"] = 69] = "Career";
EntityDataKey[EntityDataKey["HasCommandBlock"] = 70] = "HasCommandBlock";
EntityDataKey[EntityDataKey["CommandName"] = 71] = "CommandName";
EntityDataKey[EntityDataKey["LastCommandOutput"] = 72] = "LastCommandOutput";
EntityDataKey[EntityDataKey["TrackCommandOutput"] = 73] = "TrackCommandOutput";
EntityDataKey[EntityDataKey["ControllingSeatIndex"] = 74] = "ControllingSeatIndex";
EntityDataKey[EntityDataKey["Strength"] = 75] = "Strength";
EntityDataKey[EntityDataKey["StrengthMax"] = 76] = "StrengthMax";
EntityDataKey[EntityDataKey["DataSpellCastingColor"] = 77] = "DataSpellCastingColor";
EntityDataKey[EntityDataKey["DataLifetimeTicks"] = 78] = "DataLifetimeTicks";
EntityDataKey[EntityDataKey["PoseIndex"] = 79] = "PoseIndex";
EntityDataKey[EntityDataKey["DataTickOffset"] = 80] = "DataTickOffset";
EntityDataKey[EntityDataKey["AlwaysShowNameTag"] = 81] = "AlwaysShowNameTag";
EntityDataKey[EntityDataKey["ColorTwoIndex"] = 82] = "ColorTwoIndex";
EntityDataKey[EntityDataKey["NameAuthor"] = 83] = "NameAuthor";
EntityDataKey[EntityDataKey["Score"] = 84] = "Score";
EntityDataKey[EntityDataKey["BalloonAnchor"] = 85] = "BalloonAnchor";
EntityDataKey[EntityDataKey["PuffedState"] = 86] = "PuffedState";
EntityDataKey[EntityDataKey["BubbleTime"] = 87] = "BubbleTime";
EntityDataKey[EntityDataKey["Agent"] = 88] = "Agent";
EntityDataKey[EntityDataKey["SittingAmount"] = 89] = "SittingAmount";
EntityDataKey[EntityDataKey["SittingAmountPrevious"] = 90] = "SittingAmountPrevious";
EntityDataKey[EntityDataKey["EatingCounter"] = 91] = "EatingCounter";
EntityDataKey[EntityDataKey["FlagsTwo"] = 92] = "FlagsTwo";
EntityDataKey[EntityDataKey["LayingAmount"] = 93] = "LayingAmount";
EntityDataKey[EntityDataKey["LayingAmountPrevious"] = 94] = "LayingAmountPrevious";
EntityDataKey[EntityDataKey["DataDuration"] = 95] = "DataDuration";
EntityDataKey[EntityDataKey["DataSpawnTime"] = 96] = "DataSpawnTime";
EntityDataKey[EntityDataKey["DataChangeRate"] = 97] = "DataChangeRate";
EntityDataKey[EntityDataKey["DataChangeOnPickup"] = 98] = "DataChangeOnPickup";
EntityDataKey[EntityDataKey["DataPickupCount"] = 99] = "DataPickupCount";
EntityDataKey[EntityDataKey["InteractText"] = 100] = "InteractText";
EntityDataKey[EntityDataKey["TradeTier"] = 101] = "TradeTier";
EntityDataKey[EntityDataKey["MaxTradeTier"] = 102] = "MaxTradeTier";
EntityDataKey[EntityDataKey["TradeExperience"] = 103] = "TradeExperience";
EntityDataKey[EntityDataKey["SkinID"] = 104] = "SkinID";
EntityDataKey[EntityDataKey["SpawningFrames"] = 105] = "SpawningFrames";
EntityDataKey[EntityDataKey["CommandBlockTickDelay"] = 106] = "CommandBlockTickDelay";
EntityDataKey[EntityDataKey["CommandBlockExecuteOnFirstTick"] = 107] = "CommandBlockExecuteOnFirstTick";
EntityDataKey[EntityDataKey["AmbientSoundInterval"] = 108] = "AmbientSoundInterval";
EntityDataKey[EntityDataKey["AmbientSoundIntervalRange"] = 109] = "AmbientSoundIntervalRange";
EntityDataKey[EntityDataKey["AmbientSoundEventName"] = 110] = "AmbientSoundEventName";
EntityDataKey[EntityDataKey["FallDamageMultiplier"] = 111] = "FallDamageMultiplier";
EntityDataKey[EntityDataKey["NameRawText"] = 112] = "NameRawText";
EntityDataKey[EntityDataKey["CanRideTarget"] = 113] = "CanRideTarget";
EntityDataKey[EntityDataKey["LowTierCuredTradeDiscount"] = 114] = "LowTierCuredTradeDiscount";
EntityDataKey[EntityDataKey["HighTierCuredTradeDiscount"] = 115] = "HighTierCuredTradeDiscount";
EntityDataKey[EntityDataKey["NearbyCuredTradeDiscount"] = 116] = "NearbyCuredTradeDiscount";
EntityDataKey[EntityDataKey["NearbyCuredDiscountTimeStamp"] = 117] = "NearbyCuredDiscountTimeStamp";
EntityDataKey[EntityDataKey["HitBox"] = 118] = "HitBox";
EntityDataKey[EntityDataKey["IsBuoyant"] = 119] = "IsBuoyant";
EntityDataKey[EntityDataKey["FreezingEffectStrength"] = 120] = "FreezingEffectStrength";
EntityDataKey[EntityDataKey["BuoyancyData"] = 121] = "BuoyancyData";
EntityDataKey[EntityDataKey["GoatHornCount"] = 122] = "GoatHornCount";
EntityDataKey[EntityDataKey["BaseRuntimeID"] = 123] = "BaseRuntimeID";
EntityDataKey[EntityDataKey["MovementSoundDistanceOffset"] = 124] = "MovementSoundDistanceOffset";
EntityDataKey[EntityDataKey["HeartbeatIntervalTicks"] = 125] = "HeartbeatIntervalTicks";
EntityDataKey[EntityDataKey["HeartbeatSoundEvent"] = 126] = "HeartbeatSoundEvent";
EntityDataKey[EntityDataKey["PlayerLastDeathPosition"] = 127] = "PlayerLastDeathPosition";
EntityDataKey[EntityDataKey["PlayerLastDeathDimension"] = 128] = "PlayerLastDeathDimension";
EntityDataKey[EntityDataKey["PlayerHasDied"] = 129] = "PlayerHasDied";
EntityDataKey[EntityDataKey["CollisionBox"] = 130] = "CollisionBox";
})(EntityDataKey || (EntityDataKey = {}));
;
var EntityDataFlag;
(function (EntityDataFlag) {
EntityDataFlag[EntityDataFlag["OnFire"] = 0] = "OnFire";
EntityDataFlag[EntityDataFlag["Sneaking"] = 1] = "Sneaking";
EntityDataFlag[EntityDataFlag["Riding"] = 2] = "Riding";
EntityDataFlag[EntityDataFlag["Sprinting"] = 3] = "Sprinting";
EntityDataFlag[EntityDataFlag["UsingItem"] = 4] = "UsingItem";
EntityDataFlag[EntityDataFlag["Invisible"] = 5] = "Invisible";
EntityDataFlag[EntityDataFlag["Tempted"] = 6] = "Tempted";
EntityDataFlag[EntityDataFlag["InLove"] = 7] = "InLove";
EntityDataFlag[EntityDataFlag["Saddled"] = 8] = "Saddled";
EntityDataFlag[EntityDataFlag["Powered"] = 9] = "Powered";
EntityDataFlag[EntityDataFlag["Ignited"] = 10] = "Ignited";
EntityDataFlag[EntityDataFlag["Baby"] = 11] = "Baby";
EntityDataFlag[EntityDataFlag["Converting"] = 12] = "Converting";
EntityDataFlag[EntityDataFlag["Critical"] = 13] = "Critical";
EntityDataFlag[EntityDataFlag["ShowName"] = 14] = "ShowName";
EntityDataFlag[EntityDataFlag["AlwaysShowName"] = 15] = "AlwaysShowName";
EntityDataFlag[EntityDataFlag["NoAI"] = 16] = "NoAI";
EntityDataFlag[EntityDataFlag["Silent"] = 17] = "Silent";
EntityDataFlag[EntityDataFlag["WallClimbing"] = 18] = "WallClimbing";
EntityDataFlag[EntityDataFlag["Climb"] = 19] = "Climb";
EntityDataFlag[EntityDataFlag["Swim"] = 20] = "Swim";
EntityDataFlag[EntityDataFlag["Fly"] = 21] = "Fly";
EntityDataFlag[EntityDataFlag["Walk"] = 22] = "Walk";
EntityDataFlag[EntityDataFlag["Resting"] = 23] = "Resting";
EntityDataFlag[EntityDataFlag["Sitting"] = 24] = "Sitting";
EntityDataFlag[EntityDataFlag["Angry"] = 25] = "Angry";
EntityDataFlag[EntityDataFlag["Interested"] = 26] = "Interested";
EntityDataFlag[EntityDataFlag["Charged"] = 27] = "Charged";
EntityDataFlag[EntityDataFlag["Tamed"] = 28] = "Tamed";
EntityDataFlag[EntityDataFlag["Orphaned"] = 29] = "Orphaned";
EntityDataFlag[EntityDataFlag["Leashed"] = 30] = "Leashed";
EntityDataFlag[EntityDataFlag["Sheared"] = 31] = "Sheared";
EntityDataFlag[EntityDataFlag["Gliding"] = 32] = "Gliding";
EntityDataFlag[EntityDataFlag["Elder"] = 33] = "Elder";
EntityDataFlag[EntityDataFlag["Moving"] = 34] = "Moving";
EntityDataFlag[EntityDataFlag["Breathing"] = 35] = "Breathing";
EntityDataFlag[EntityDataFlag["Chested"] = 36] = "Chested";
EntityDataFlag[EntityDataFlag["Stackable"] = 37] = "Stackable";
EntityDataFlag[EntityDataFlag["ShowBottom"] = 38] = "ShowBottom";
EntityDataFlag[EntityDataFlag["Standing"] = 39] = "Standing";
EntityDataFlag[EntityDataFlag["Shaking"] = 40] = "Shaking";
EntityDataFlag[EntityDataFlag["Idling"] = 41] = "Idling";
EntityDataFlag[EntityDataFlag["Casting"] = 42] = "Casting";
EntityDataFlag[EntityDataFlag["Charging"] = 43] = "Charging";
EntityDataFlag[EntityDataFlag["KeyboardControlled"] = 44] = "KeyboardControlled";
EntityDataFlag[EntityDataFlag["PowerJump"] = 45] = "PowerJump";
EntityDataFlag[EntityDataFlag["Dash"] = 46] = "Dash";
EntityDataFlag[EntityDataFlag["Lingering"] = 47] = "Lingering";
EntityDataFlag[EntityDataFlag["HasCollision"] = 48] = "HasCollision";
EntityDataFlag[EntityDataFlag["HasGravity"] = 49] = "HasGravity";
EntityDataFlag[EntityDataFlag["FireImmune"] = 50] = "FireImmune";
EntityDataFlag[EntityDataFlag["Dancing"] = 51] = "Dancing";
EntityDataFlag[EntityDataFlag["Enchanted"] = 52] = "Enchanted";
EntityDataFlag[EntityDataFlag["ReturnTrident"] = 53] = "ReturnTrident";
EntityDataFlag[EntityDataFlag["ContainerPrivate"] = 54] = "ContainerPrivate";
EntityDataFlag[EntityDataFlag["Transforming"] = 55] = "Transforming";
EntityDataFlag[EntityDataFlag["DamageNearbyMobs"] = 56] = "DamageNearbyMobs";
EntityDataFlag[EntityDataFlag["Swimming"] = 57] = "Swimming";
EntityDataFlag[EntityDataFlag["Bribed"] = 58] = "Bribed";
EntityDataFlag[EntityDataFlag["Pregnant"] = 59] = "Pregnant";
EntityDataFlag[EntityDataFlag["LayingEgg"] = 60] = "LayingEgg";
EntityDataFlag[EntityDataFlag["PassengerCanPick"] = 61] = "PassengerCanPick";
EntityDataFlag[EntityDataFlag["TransitionSitting"] = 62] = "TransitionSitting";
EntityDataFlag[EntityDataFlag["Eating"] = 63] = "Eating";
EntityDataFlag[EntityDataFlag["LayingDown"] = 64] = "LayingDown";
EntityDataFlag[EntityDataFlag["Sneezing"] = 65] = "Sneezing";
EntityDataFlag[EntityDataFlag["Trusting"] = 66] = "Trusting";
EntityDataFlag[EntityDataFlag["Rolling"] = 67] = "Rolling";
EntityDataFlag[EntityDataFlag["Scared"] = 68] = "Scared";
EntityDataFlag[EntityDataFlag["InScaffolding"] = 69] = "InScaffolding";
EntityDataFlag[EntityDataFlag["OverScaffolding"] = 70] = "OverScaffolding";
EntityDataFlag[EntityDataFlag["DescendThroughBlock"] = 71] = "DescendThroughBlock";
EntityDataFlag[EntityDataFlag["Blocking"] = 72] = "Blocking";
EntityDataFlag[EntityDataFlag["TransitionBlocking"] = 73] = "TransitionBlocking";
EntityDataFlag[EntityDataFlag["BlockedUsingShield"] = 74] = "BlockedUsingShield";
EntityDataFlag[EntityDataFlag["BlockedUsingDamagedShield"] = 75] = "BlockedUsingDamagedShield";
EntityDataFlag[EntityDataFlag["Sleeping"] = 76] = "Sleeping";
EntityDataFlag[EntityDataFlag["WantsToWake"] = 77] = "WantsToWake";
EntityDataFlag[EntityDataFlag["TradeInterest"] = 78] = "TradeInterest";
EntityDataFlag[EntityDataFlag["DoorBreaker"] = 79] = "DoorBreaker";
EntityDataFlag[EntityDataFlag["BreakingObstruction"] = 80] = "BreakingObstruction";
EntityDataFlag[EntityDataFlag["DoorOpener"] = 81] = "DoorOpener";
EntityDataFlag[EntityDataFlag["Captain"] = 82] = "Captain";
EntityDataFlag[EntityDataFlag["Stunned"] = 83] = "Stunned";
EntityDataFlag[EntityDataFlag["Roaring"] = 84] = "Roaring";
EntityDataFlag[EntityDataFlag["DelayedAttack"] = 85] = "DelayedAttack";
EntityDataFlag[EntityDataFlag["AvoidingMobs"] = 86] = "AvoidingMobs";
EntityDataFlag[EntityDataFlag["AvoidingBlock"] = 87] = "AvoidingBlock";
EntityDataFlag[EntityDataFlag["FacingTargetToRangeAttack"] = 88] = "FacingTargetToRangeAttack";
EntityDataFlag[EntityDataFlag["HiddenWhenInvisible"] = 89] = "HiddenWhenInvisible";
EntityDataFlag[EntityDataFlag["InUI"] = 90] = "InUI";
EntityDataFlag[EntityDataFlag["Stalking"] = 91] = "Stalking";
EntityDataFlag[EntityDataFlag["Emoting"] = 92] = "Emoting";
EntityDataFlag[EntityDataFlag["Celebrating"] = 93] = "Celebrating";
EntityDataFlag[EntityDataFlag["Admiring"] = 94] = "Admiring";
EntityDataFlag[EntityDataFlag["CelebratingSpecial"] = 95] = "CelebratingSpecial";
EntityDataFlag[EntityDataFlag["OutOfControl"] = 96] = "OutOfControl";
EntityDataFlag[EntityDataFlag["RamAttack"] = 97] = "RamAttack";
EntityDataFlag[EntityDataFlag["PlayingDead"] = 98] = "PlayingDead";
EntityDataFlag[EntityDataFlag["InAscendingBlock"] = 99] = "InAscendingBlock";
EntityDataFlag[EntityDataFlag["OverDescendingBlock"] = 100] = "OverDescendingBlock";
EntityDataFlag[EntityDataFlag["Croaking"] = 101] = "Croaking";
EntityDataFlag[EntityDataFlag["DigestMob"] = 102] = "DigestMob";
EntityDataFlag[EntityDataFlag["JumpGoal"] = 103] = "JumpGoal";
EntityDataFlag[EntityDataFlag["Emerging"] = 104] = "Emerging";
EntityDataFlag[EntityDataFlag["Sniffing"] = 105] = "Sniffing";
EntityDataFlag[EntityDataFlag["Digging"] = 106] = "Digging";
EntityDataFlag[EntityDataFlag["SonicBoom"] = 107] = "SonicBoom";
EntityDataFlag[EntityDataFlag["HasDashTimeout"] = 108] = "HasDashTimeout";
EntityDataFlag[EntityDataFlag["PushTowardsClosestSpace"] = 109] = "PushTowardsClosestSpace";
EntityDataFlag[EntityDataFlag["Scenting"] = 110] = "Scenting";
EntityDataFlag[EntityDataFlag["Rising"] = 111] = "Rising";
EntityDataFlag[EntityDataFlag["FeelingHappy"] = 112] = "FeelingHappy";
EntityDataFlag[EntityDataFlag["Searching"] = 113] = "Searching";
EntityDataFlag[EntityDataFlag["Crawling"] = 114] = "Crawling";
})(EntityDataFlag || (EntityDataFlag = {}));
Loading

0 comments on commit cb2d995

Please sign in to comment.