A Minecraft datapack generator written in go.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

wip: predicate

cosmeak 751359f9 e49c068f

+41 -13
+41 -13
predicate/entity.go
··· 1 1 package predicate 2 2 3 + type minMaxInt struct { 4 + Min int 5 + Max int 6 + } 7 + 8 + type minMaxDouble struct { 9 + Min float64 10 + Max float64 11 + } 12 + 3 13 type Entity struct { 4 14 type_ []string 5 15 // components 6 - distance Distance 7 - effects []Effect 8 - equipement []Equipement 9 - flags EntityFlag 10 - location Location 11 - nbt string 12 - passenger *Entity 16 + distance Distance 17 + effects []Effect 18 + equipement []Equipement 19 + flags EntityFlag 20 + location Location 21 + nbt string 22 + passenger *Entity 23 + slots []Slot 24 + steppingOn Location 25 + movementAffectedBy Location 26 + team string 27 + targetedEntity *Entity 28 + vehicle *Entity 29 + movement Movement 30 + periodicTick int 31 + // predicates 32 + 13 33 } 14 34 15 35 type Distance struct { ··· 84 104 Structures []string 85 105 } 86 106 87 - type minMaxInt struct { 88 - Min int 89 - Max int 107 + type Slot struct { 108 + Range string 109 + Items []string 110 + Count minMaxInt 111 + // Components 112 + // Predicatess 90 113 } 91 114 92 - type minMaxDouble struct { 93 - Min float64 94 - Max float64 115 + type Movement struct { 116 + X minMaxDouble 117 + Y minMaxDouble 118 + Z minMaxDouble 119 + Speed minMaxDouble 120 + HorizontalSpeed minMaxDouble 121 + VerticalSpeed minMaxDouble 122 + FallDistance minMaxDouble 95 123 }