-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package item | ||
|
||
// Both CanBreak and CanPlace have the same contents so im using the same class | ||
type CanDo struct { | ||
ShowInTooltip bool `nbt:"show_in_tooltip"` | ||
State any `nbt:"state"` // Have to put any cause theres an infinite amount of key value pairs there could be | ||
Blocks any `nbt:"blocks"` //Can be string, or list | ||
NBT string `nbt:"nbt"` | ||
Predicates []Predicates `nbt:"predicates"` | ||
} | ||
|
||
type Predicates struct { | ||
State any `nbt:"state"` | ||
Blocks any `nbt:"blocks"` | ||
NBT string `nbt:"nbt"` | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package item | ||
|
||
import "github.com/zeppelinmc/zeppelin/server/entity" | ||
|
||
type EntityData struct { | ||
Data int32 `nbt:"entity_data"` // NBT | ||
EntityData entity.LevelEntity `nbt:"minecraft:entity_data"` // NBT | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,24 @@ | ||
package item | ||
|
||
type Food struct { | ||
Nutrition int32 `nbt:"nutrition"` | ||
Saturation float32 `nbt:"saturation"` | ||
CanAlwaysEat bool `nbt:"can_always_eat"` | ||
EatSeconds float32 `nbt:"eat_seconds"` | ||
Nutrition int32 `nbt:"nutrition"` | ||
Saturation float32 `nbt:"saturation"` | ||
CanAlwaysEat bool `nbt:"can_always_eat"` | ||
EatSeconds float32 `nbt:"eat_seconds"` | ||
UsingConvertsTo Item `nbt:"using_converts_to"` | ||
Effects []Effect `nbt:"effects"` | ||
} | ||
|
||
type UsingConvertsTo struct { | ||
ID string `nbt:"id"` | ||
// components TAG ???? | ||
type Effects struct { | ||
Effect Effect `nbt:"effect"` | ||
Probability float32 `nbt:"probability"` | ||
} | ||
|
||
type Effect *struct { | ||
ID string `nbt:"id"` | ||
Amplifier byte `nbt:"amplifier"` | ||
Duration int32 `nbt:"duration"` | ||
Ambient bool `nbt:"ambient"` | ||
ShowParticles bool `nbt:"show_particles"` | ||
ShowIcon bool `nbt:"show_icon"` | ||
Probability float32 `nbt:"probability"` | ||
type Effect struct { | ||
ID string `nbt:"id"` | ||
Amplifier int8 `nbt:"amplifier"` | ||
Duration int32 `nbt:"duration"` | ||
Ambient bool `nbt:"ambient"` | ||
ShowParticles bool `nbt:"show_particles"` | ||
ShowIcon bool `nbt:"show_icon"` | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.