Documentation
¶
Index ¶
- Variables
- type AttributeModifiers
- type BannerPattern
- type Bee
- type BucketEntityData
- type CanDo
- type ContainerLoot
- type CreativeSlotLock
- type DataSlot
- type Effect
- type Effects
- type Enchantments
- type EntityData
- type Explosion
- type FireResistant
- type FireworkExplosion
- type Fireworks
- type Food
- type HideAdditionalTooltip
- type HideTooltip
- type IntangibleProjectile
- type Item
- type JukeboxPlayable
- type LodestoneTracker
- type MapPostProcessing
- type Modifier
- type ModifierOperation
- type Predicates
- type Rule
- type StoredEnchantments
- type SuspiciousStewEffect
- type Target
- type Title
- type Tool
- type Trim
- type Unbreakable
- type WritableBookContent
- type WrittenBookContent
Constants ¶
This section is empty.
Variables ¶
View Source
var Air = Item{Id: "minecraft:air"}
Functions ¶
This section is empty.
Types ¶
type AttributeModifiers ¶
type BannerPattern ¶
type Bee ¶
type Bee struct { EntityData entity.LevelEntity `nbt:"entity_data"` // import cycle :( MinimumTicksInHive int32 `nbt:"min_ticks_in_hive"` TicksInHive int32 `nbt:"ticks_in_hive"` }
type BucketEntityData ¶
type BucketEntityData struct { NoAI bool `nbt:"NoAI"` Silent bool `nbt:"Silent"` NoGravity bool `nbt:"NoGravity"` Glowing bool `nbt:"Glowing"` Invulnerable bool `nbt:"Invulnerable"` Health float32 `nbt:"Health"` Age int32 `nbt:"Age"` Variant int32 `nbt:"Variant"` HuntingCooldown int64 `nbt:"HuntingCooldown"` BucketVariantTag int32 `nbt:"BucketVariantTag"` }
type CanDo ¶
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"` }
Both CanBreak and CanPlace have the same contents so im using the same class
type ContainerLoot ¶
type CreativeSlotLock ¶
type CreativeSlotLock struct { }
Do not add this tag at all if you don't need it!
type Enchantments ¶
type EntityData ¶
type EntityData struct {
EntityData entity.LevelEntity `nbt:"minecraft:entity_data"` // NBT
}
type FireResistant ¶
type FireResistant struct { }
Do not add this tag at all if you don't want it to be fire resistant!
type FireworkExplosion ¶
type HideAdditionalTooltip ¶
type HideAdditionalTooltip struct { }
Do not add this tag at all if you don't want it to hide additional tooltip(s)!
type HideTooltip ¶
type HideTooltip struct { }
Do not add this tag at all if you don't want it to hide the tooltip!
type IntangibleProjectile ¶
type IntangibleProjectile struct { }
Do not add this tag at all if you don't want it to intangible!
type Item ¶
type Item struct { // The slot (as stored in the player data) Slot DataSlot `nbt:"Slot"` // the amount of items in the slot Count int32 `nbt:"count"` // The string id of this item Id string `nbt:"id"` // Components of this item (https://minecraft.wiki/w/Data_component_format#List_of_components) Components struct{} `nbt:"components"` /*struct { AttributeModifiers any `nbt:"minecraft:attribute_modifiers"` BannerPatterns []BannerPattern `nbt:"minecraft:banner_patterns"` BaseColor string `nbt:"minecraft:base_color"` Bees []Bee `nbt:"minecraft:bees"` BlockEntityData any `nbt:"minecraft:block_entity_data"` BlockState any `nbt:"minecraft:block_state"` BucketEntityData BucketEntityData `nbt:"minecraft:bucket_entity_data"` BundleContents []Item `nbt:"minecraft_bundle_contents"` CanBreak CanDo `nbt:"minecraft:can_break"` CanPlaceOn CanDo `nbt:"minecraft:can_place_on"` ChargedProjectiles []Item `nbt:"minecraft:charged_projectiles"` Container []Item `nbt:"minecraft:container"` ContainerLoot ContainerLoot `nbt:"minecraft_container_loot"` CustomData any `nbt:"minecraft:custom_data"` CustomModelData int32 `nbt:"minecraft:custom_model_data"` CustomName string `nbt:"minecraft:custom_name"` Damage int32 `nbt:"minecraft:damage"` DebugStickState any `nbt:"minecraft:debug_stick_state"` DyedColor any `nbt:"minecraft:dyed_color"` EnchantmentGlintOverride bool `nbt:"minecraft:enchantment_glint_override"` Enchantments Enchantments `nbt:"minecraft:enchantments"` EntityData state.LevelEntity `nbt:"minecraft:entity_data"` FireResistant FireResistant `nbt:"minecraft:fire_resistant"` FireworkExplosion FireworkExplosion `nbt:"minecraft:firework_explosion"` Fireworks Fireworks `nbt:"minecraft:fireworks"` Food Food `nbt:"minecraft:food"` HideAdditionalTooltip HideAdditionalTooltip `nbt:"minecraft:hide_additional_tooltip"` HideTooltip HideTooltip `nbt:"minecraft:hide_tooltip"` Instrument any `nbt:"minecraft:instrument"` IntangibleProjectile IntangibleProjectile `nbt:"minecraft:intangible_projectile"` ItemName string `nbt:"minecraft:item_name"` JukeboxPlayable JukeboxPlayable `nbt:"minecraft:jukebox_playable"` Lock string `nbt:"minecraft:lock"` LodestoneTracker LodestoneTracker `nbt:"minecraft:lodestone_tracker"` Lore []string `nbt:"minecraft:lore"` MapColor int32 `nbt:"minecraft:map_color"` MapDecorations any `nbt:"minecraft:map_decorations"` MapID int32 `nbt:"minecraft:map_id"` MaxDamage int32 `nbt:"minecraft:max_damage"` MaxStackSize int32 `nbt:"minecraft:max_stack_size"` NoteBlockSound string `nbt:"minecraft:note_block_sound"` OminousBottleAmplifier int32 `nbt:"minecraft:ominous_bottle_amplifier"` PotDecorations []string `nbt:"minecraft:pot_decorations"` PotionContents any `nbt:"minecraft:potion_contents"` Profile any `nbt:"minecraft:profile"` Rarity string `nbt:"minecraft:rarity"` Recipes []string `nbt:"minecraft:recipes"` RepairCost int32 `nbt:"minecraft:repair_cost"` StoredEnchantments StoredEnchantments `nbt:"minecraft:stored_enchantments"` SuspiciousStewEffects []SuspiciousStewEffect `nbt:"minecraft:suspicious_stew_effects"` Tool Tool `nbt:"minecraft:tool"` Trim Trim `nbt:"minecraft:trim"` Unbreakable Unbreakable `nbt:"minecraft:unbreakable"` WritableBookContent WritableBookContent `nbt:"minecraft:writable_book_content"` WrittenBookContent WrittenBookContent `nbt:"minecraft:written_book_content"` CreativeSlotLock CreativeSlotLock `nbt:"minecraft:creative_slot_lock"` MapPostProcessing int32 `nbt:"minecraft:map_post_processing"` } `nbt:"components"`*/ }
type JukeboxPlayable ¶
type LodestoneTracker ¶
type MapPostProcessing ¶
type MapPostProcessing struct {
MapPostProcessing int32 `nbt:"map_post_processing"`
}
type Modifier ¶
type Modifier struct { Type string `nbt:"type"` Slot string `nbt:"slot"` Id string `nbt:"id"` Amount float64 `nbt:"amount"` Operator ModifierOperation `nbt:"operation"` }
type ModifierOperation ¶
type ModifierOperation string
const ( AddValue ModifierOperation = "add_value" AddMultipliedBase ModifierOperation = "add_multiplied_base" AddMultipliedTotal ModifierOperation = "add_multiplied_total" )
type Predicates ¶
type StoredEnchantments ¶
type SuspiciousStewEffect ¶
type Unbreakable ¶
type Unbreakable struct {
ShowInTooltip bool `nbt:"show_in_tooltip"`
}
type WritableBookContent ¶
type WritableBookContent struct {
Pages any `nbt:"pages"`
}
Source Files
¶
- attribute_modifiers.go
- banner_patterns.go
- bees.go
- bucket_entity_data.go
- can_do.go
- container_loot.go
- creative_slot_lock.go
- enchantments.go
- entity_data.go
- fire_resistant.go
- firework_explosion.go
- fireworks.go
- food.go
- hide_additional_tooltip.go
- hide_tooltip.go
- intangible_projectile.go
- item.go
- items.go
- jukebox_playable.go
- lodestone_tracker.go
- map_post_processing.go
- stored_enchantments.go
- susipicious_stew_effects.go
- tool.go
- trim.go
- unbreakable.go
- writable_book_content.go
- written_book_content.go
Click to show internal directories.
Click to hide internal directories.