More Blocks

This commit is contained in:
yefengeeeeeeeeeee 2026-04-06 18:54:11 +08:00
parent 153acc4002
commit da53ee6735

View file

@ -680,18 +680,21 @@ class BlockAPI{
} }
$idMap = [ //default for protocol < 12 $idMap = [ //default for protocol < 12
LIT_PUMPKIN => MELON_BLOCK, //block RAIL => AIR,
PUMPKIN_SEEDS => MELON_SEEDS, //item POWERED_RAIL => AIR,
PUMPKIN_PIE => BREAD, //item LIT_PUMPKIN => MELON_BLOCK,
BEETROOT => BREAD, //item PUMPKIN_SEEDS => MELON_SEEDS,
BEETROOT_SEEDS => SEEDS, //item PUMPKIN_PIE => BREAD,
BEETROOT => BREAD,
BEETROOT_SEEDS => SEEDS,
]; ];
if ($protocolId < ProtocolInfo9::CURRENT_PROTOCOL_9) { if ($protocolId < ProtocolInfo9::CURRENT_PROTOCOL_9) {
$idMap += [ $idMap += [
NETHERRACK => OBSIDIAN, //block SPAWN_EGG => AIR,
NETHER_BRICK => BRICK, //item NETHERRACK => OBSIDIAN,
NETHER_QUARTZ => BRICK, //item NETHER_BRICK => BRICK,
NETHER_QUARTZ => BRICK,
]; ];
} }