截图
介绍
/piss mod
This mod adds the /piss command, which triggers the player to urinate. The effect is visible to all players (everything is handled on the server; there is almost no client-side code).
Features
- Type the command
/pissto start urinating. - Hold down
Shiftto stop it early. - Typing
/pissagain also stops the current urination. - The stream moves in the direction of the player’s line of sight and reacts to collisions with blocks.
- The stream reacts to entities: when it hits a target, it stops on the target, and the visual trail moves with it for a short time.
- Urination automatically stops after about 5 seconds, as well as when the player dies or leaves the game.
- The effect is processed on the server and is visible to other players.
How the Projectile Works (Every Server Tick)
-
Parabola, not physics. Launch point — the player’s hips (
player.position().add(0, 0.8, 0)), initial velocity — in the direction of the player’s gaze (player.getLookAngle(), velocity ~0.5–0.7), gravity ~0.05/tick². We sample the parabolic trajectory at ~12 points with a large step size—the jet’s cubes are sparsely distributed. -
Glass blocks instead of particles. The jet is a
Display.BlockDisplaypool containing a full block of yellow glass (Panes.GLASS_BLOCK, scale ~0.13, no rotation—the transformation is global and static), with one block per visible point on the parabola. Every tick, the pool is adjusted to the number of points, and the entities move (setPos) rather than being recreated;setPosRotInterpolationDuration(4)smooths and slows down the movement on the client. Particles are not used. -
Hit point. Using the same parabolic segments—
level.clip(new ClipContext(from, to, ClipContext.Block.COLLIDER, ClipContext.Fluid.NONE, player))for blocks, plusProjectileUtil.getEntityHitResult(...)for entities (the segment is clipped by the block hit, and the player itself andDisplayentities of the jet stream are excluded from the predicate). First hit = landing point; we do not sample the parabola further. -
Ghost block (puddle). At the point of impact, spawn a
Display.BlockDisplaywith a flat panel (NOT a cross-shaped one):YELLOW_STAINED_GLASS_PANEwith both opposite sides set totrue, facing the player (rotated around the Y-axis by-yRot). The world is NOT modified; by definition, display entities have no collisions.- Fade-in interpolation: upon spawn, duration is 12 ticks; one tick later — the target transformation is “lower and wider” (scale.y → ~0.15). If this is set at the spawn tick, the client will receive both states in a single packet and will not animate them.
- After 12 ticks (0.6 s) —
entity.discard(). A new puddle is spawned every 4 ticks (GHOST_INTERVAL). - Hitting an entity: the puddle “sticks” — it remembers the target and the offset from its position, and reposition itself behind it every tick (
setPosRotInterpolationDuration(2)for smoothness).
-
Stopping the stream: timer (100 ticks = 5 s), repeated
/piss(toggle), Shift (player.isShiftKeyDown()on the server—no client-side keybind required), death, logout, or dimension change. The command does not send any messages to chat or the action bar.
License
This project is licensed under the Softboundless Mod License 1.0.
Modification, redistribution, forks, ports, and modpack usage are generally permitted. However, use in third-party Minecraft modpacks using the Freakland name is restricted.
See LICENSE for the full terms.
常见问题
piss command 支持哪些 Minecraft 版本?
piss command 支持 Minecraft Java 版 1.21.1,可用的加载器:NeoForge。下载时注意选择和你游戏版本一致的文件。
piss command 怎么安装?
先用 PCL2 或 HMCL 启动器安装对应版本的 NeoForge,再把下载的 .jar 文件放进游戏目录的 mods 文件夹,重新启动游戏即可。开启了版本隔离的,mods 文件夹在 versions/版本名 下面。
peacefull02 的其他作品
查看全部 →Freakland Create2
An unofficial Freakland Create mod for Minecraft 1.21.1 on NeoForge, featuring Create, Aeronautics, Big Cannons, transportation, automation, and optimization.
Freecam Spectator
Fork of "Freecam" without controvertial and "banned" features + key feature invisible Freecam head
Headlights
A Minecraft mod that adds headlights from the player's head, which also include FullBright
Freecam Spectator
Fork of "Freecam" without controvertial and "banned" features + key feature invisible Freecam head
评论
登录后评论和评分