
Carpet PVP
Fork of Carpet Mod that fixes PVP-related bugs with carpet fake players and adds some new commands.
📖About Carpet PVP
This mod was made to be used by Theobald's PVP Practice map.
This mod fixes bugs and quirks with Carpet mod's fake players to be more consistent with real players, and adds extra commands for controlling players through a datapack.
Updated for 1.4: Do not reference this for 1.2
Differences from Carpet Mod FixesFixed gliding to work with
/player jumpwhile in midairFixed fall distance not updating correctly (fixes crit and mace behavior)
Fixed downward motion not being saved in some cases
Fixed
/player lookyaw/pitch being reversedFixed multiple edge cases related to fake player movement and actions
Added a toggle to allow/disallow shield stunning for players
Added target selector support to player commands
Renamed
/player <name> spawnto/playerspawn <name>- now it is
/playerspawn <name> [at <coords> [in <gamemode> [on <world>]]]
- now it is
Added look mode options to
/player <target> look upon <entity> [eyes|feet|closest]eyes- looks at the entity’s eyes (default)feet- looks at the entity’s feetclosest- looks at the closest point of the entity’s hitbox
Added
itemCdcommand for item cooldown controlitemCd- resets all item cooldowns [returns how many items were reset]itemCd <item>- shows how many ticks left on the item's cooldown, says ready if no cooldown [returns how many ticks left]itemCd <item> reset- resets cooldown [returns how many players were targeted]itemCd <item> set- applies the default item cooldown without using it [returns how many players were targeted]. If there is no default item cooldown, will not do anything [for example cobblestone]itemCd <item> set <ticks>- applies a custom total cooldown duration without using it [returns how many players were targeted]
Added swing animation command for fake players
Swings a hand without performing an action
Resets attack cooldown
No parameters stop any ongoing swinging
Changed
/player use(no parameters) to stop using without triggering another use- Previously behaved the same as
/player use once
- Previously behaved the same as
Changed
/distanceto store spherical distance values into scoreboardsAdded
eargument to/distancefor higher scale- for example:
/distance from HerobaneNair to TheobaldTheBot e 4while we're 4 blocks away will return4000to be stored in a scoreboard as needed
- for example:
Added support for measuring distance between two entities
Added horizontal and vertical distance measurement:
/distance from <from> to <to> horizontal|verticalAllows measuring horizontal or vertical distance between entities or positions
Added carpet rule for shield stunning
Added carpet rule for editable player NBT
/carpet editablePlayerNbt
Added carpet rule to disable fire from anchors and beds
/carpet explosionNoFire
Changed explosion block damage rule behavior:
false- vanilla behaviormost- affects non-solid blocks except glowstone and redstone-redirecting blocks (buttons, levers, etc.)true- prevents all block damage