Add 1.21.70 support

This commit is contained in:
AkmalFairuz
2025-03-26 16:05:51 +07:00
parent c2e97e366d
commit 01dc76ffeb
16 changed files with 9435 additions and 33 deletions

25
legacyver/v786.go Normal file
View File

@@ -0,0 +1,25 @@
package legacyver
import (
_ "embed"
"github.com/akmalfairuz/legacy-version/mapping"
)
const (
// ItemVersion786 ...
ItemVersion786 = 241
// BlockVersion786 ...
BlockVersion786 int32 = (1 << 24) | (21 << 16) | (70 << 8)
)
var (
//go:embed data/item_runtime_ids_786.nbt
itemRuntimeIDData786 []byte
//go:embed data/required_item_list_786.json
requiredItemList786 []byte
//go:embed data/block_states_786.nbt
blockStateData786 []byte
itemMappingLatest = mapping.NewItemMapping(itemRuntimeIDData786, requiredItemList786, ItemVersion786, false)
blockMappingLatest = mapping.NewBlockMapping(blockStateData786)
)