pocket Unlimited
作者:rebot | 分类:模组
Minecraft 版本: 1.21.1 1.21.2 1.21.3 1.21.4 1.21.5 1.21.6 1.21.7 1.21.8 1.21.9 1.21.10 1.21.11 26.1
平台: neoforge
标签: utility
This addon for CC: Tweaked allows you to equip more then one upgrade to a pocket computer (regular and advanced). The multible upgrades can be used as if they were just regular upgrades or you can specify to avoid naming conflics (see below)
Runtime requirements
- Minecraft
1.21.1 - NeoForge
21.1.x - CC: Tweaked
1.117.0+
In-game usage
pocketUnlimited is available on pocket computers.
lua
one-time setup on a pocket computer
pocketUnlimited.enable()
equip an upgrade from player inventory slot 1-36
pocketUnlimited.equip(1)
list all equipped upgrades
print(textutils.serialize(pocketUnlimited.list()))
get all live upgrade peripherals from "back"
local back = peripheral.wrap("back")
use upgrade methods directly (like a normal single upgrade)
back.open(42) -- modem
back.playSound("minecraft:block.note_block.harp") -- speaker
optional: direct access to specific upgrade objects
local upgrades = back.upgrades()
upgrades.wireless_modem.open(42)
upgrades.speaker.playSound("minecraft:block.note_block.harp")
remove an upgrade and return its item to the player
pocketUnlimited.remove(1)
disable unlimited mode and keep one upgrade on the pocket
pocketUnlimited.disable()
disable unlimited mode and eject all upgrades
pocketUnlimited.disableAll()
back.upgradeInfo() shows each upgrade key/id/type mapping.
If two upgrades expose the same method name, use back.<upgradeKey>_<method>(...) to disambiguate.
WARNING: i have no plans on continuing this mod or mantaining it and in its current state is likely buggy. But i have not found any glitches in the few minutes ive spent testing. Use at your own risk
请登录后举报
暂无评论,抢个沙发吧~