Documentation
EioXpObeliskScreen
Ender IO 经验方尖碑(176×116,无玩家背包):110×5 经验条、经验按钮组 ×6 与红石 / IO 按钮。
30
import { EioXpObeliskScreen } from "./index";
/**
* XpObelisk 预览:30 级 60% 经验。
*/
export function EioXpObeliskScreenDemo() {
return (
<EioXpObeliskScreen
onRedstoneChange={() => {}}
onXpAction={() => {}}
redstone="always_active"
xp={{ level: 30, progress: 0.6 }}
/>
);
}
Install
$pnpm add @tennantite/enderionpm installs the compiled package; use the CLI copy above to adapt the source.
Source
packages/enderio/src/eio-xp-obelisk-screen/index.tsxThe npm package keeps the source tree, so you can copy and adapt it directly.