update blocks data

This commit is contained in:
Tnze
2024-06-15 18:12:27 +08:00
parent fff914a786
commit c43d9048ba
9 changed files with 162 additions and 35 deletions

View File

@ -44,8 +44,9 @@ var EntityList = [...]Entity{
ChiseledBookshelfEntity{},
BrushableBlockEntity{},
DecoratedPotEntity{},
// CrafterEntity{},
// TrialSpawnerEntity{},
CrafterEntity{},
TrialSpawnerEntity{},
VaultEntity{},
}
func (FurnaceEntity) ID() string { return "minecraft:furnace" }
@ -89,9 +90,9 @@ func (SculkShriekerEntity) ID() string { return "minecraft:sculk_shrieke
func (ChiseledBookshelfEntity) ID() string { return "minecraft:chiseled_bookshelf" }
func (BrushableBlockEntity) ID() string { return "minecraft:brushable_block" }
func (DecoratedPotEntity) ID() string { return "minecraft:decorated_pot" }
// func (CrafterEntity) ID() string { return "minecraft:crafter" }
// func (TrialSpawnerEntity) ID() string { return "minecraft:trial_spawner" }
func (CrafterEntity) ID() string { return "minecraft:crafter" }
func (TrialSpawnerEntity) ID() string { return "minecraft:trial_spawner" }
func (VaultEntity) ID() string { return "minecraft:vault" }
func (f FurnaceEntity) IsValidBlock(block Block) bool {
return block.ID() == "minecraft:furnace"
@ -429,10 +430,14 @@ func (d DecoratedPotEntity) IsValidBlock(block Block) bool {
return block.ID() == "minecraft:decorated_pot"
}
// func (c CrafterEntity) IsValidBlock(block Block) bool {
// return block.ID() == "minecraft:crafter"
// }
//
// func (t TrialSpawnerEntity) IsValidBlock(block Block) bool {
// return block.ID() == "minecraft:trial_spawner"
// }
func (c CrafterEntity) IsValidBlock(block Block) bool {
return block.ID() == "minecraft:crafter"
}
func (t TrialSpawnerEntity) IsValidBlock(block Block) bool {
return block.ID() == "minecraft:trial_spawner"
}
func (v VaultEntity) IsValidBlock(block Block) bool {
return block.ID() == "minecraft:vault"
}