Pinata
A configurable Pinata block (visually a rainbow jeb_ sheep) that spills configured loot when hit enough times
介绍
An operator can place a fully configured pinata with /pinata spawn, which is the way to make one worth queueing up for.
Otherwise, with village-quests installed, a village that thinks well of you (45 reputation) will occasionally offer to put one up. Nothing is charged. Reputation there buys belonging rather than goods, and a village throwing a party for its children is belonging in its plainest form.
It goes up outside, and every child in the village walks over and stands around it until somebody breaks it or the light starts to go. They head home before dusk, because a child who leaves at dusk is a child walking home in the dark. A hand-placed pinata, or one spawned without contents=, carries a modest default of sweets (six cookies, four sweet berries, three glow berries and an emerald), because a pinata that breaks open onto an empty floor is a sad thing.
Features
- Pinata Block: Place it and hit it; after a configurable number of hits it breaks and sprays its contents outward as item entities
- Configurable per-pinata, via the
/pinatacommand:- Number of hits required to break (
hits=, default 5, 1 to 1000) - Item spread distance (
spread=, default 0.5, 0 to 10) - One or more content sets (
contents=, last on the line): comma-separateditem countentries (count 1 to 64, default 1), with|between sets; unknown items are skipped - Indestructible mode (
indestructible): the pinata doesn’t break permanently; instead it resets after a configurable cooldown (cooldown=, in ticks, default 0, up to 72000), optionally advancing to the next content set each time (in order, or randomized withrandomize)
- Number of hits required to break (
/pinata spawn [pos] <config>: places a fully configured pinata at the given position (or against the block you’re looking at, within 5 blocks), e.g.hits=5 spread=2.0 indestructible cooldown=60 randomize contents=minecraft:diamond 5, minecraft:gold_ingot 3 | minecraft:emerald 10/pinata info <pos>: inspects an existing pinata’s configuration and remaining state- Both commands are op-only
- Hit/break feedback via particles and sounds, including distinct cooldown feedback for indestructible pinatas
- With block-tip, the card names the pinata rather than the sheep inside it, and says whether an indestructible one is ready to smash or recovering
How the visual works
The pinata block anchors a real, decorative sheep entity (NoAI, silent, persistent, custom-named jeb_ with the name hidden). Every client, including completely vanilla ones, renders the rainbow wool cycle natively via the built-in jeb_ easter egg; no custom rendering code exists anywhere. Hits on the sheep are cancelled and routed to the pinata’s hit logic, with the vanilla hurt flash as feedback. While an indestructible pinata is on cooldown, the sheep is shown sheared; the wool “regrows” when the cooldown ends.
Pandorical
Pinata runs server-side, and Pandorical is required: the server will not load this mod without it. The pinata block and item are registered through Pandorical’s content sync, along with their assets.
Clients are the optional half, and only for the block itself. The rainbow sheep needs nothing: it is a real vanilla sheep named jeb_, so every client already renders the wool cycle natively.
常见问题
Pinata 支持哪些 Minecraft 版本?
Pinata 支持 Minecraft Java 版 26.3,可用的加载器:Fabric。下载时注意选择和你游戏版本一致的文件。
Pinata 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 Fabric,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
justfatlard 的其他作品
查看全部 →Emerald Armor – pandorical
用绿宝石块制作的钻石级护甲
Emerald Tools – pandorical
用绿宝石块制作钻石级工具
Pandorical lib
为 Fabric 提供客户端桥接,让客户端支持由服务器驱动的界面、内容和渲染。
Quartz Armor
添加由平滑石英制成的盔甲
评论
登录后评论和评分