Перейти к содержимому
Mineforgian

Carpet PVP

Fork of Carpet Mod that fixes PVP-related bugs with carpet fake players and adds some new commands.

1.1M загрузок286 подписчиковMITfabric

Обновлён 16 января 2026 г. · опубликован 10 сентября 2024 г.

  • Shield knockback fixed
  • Bot in action

This mod is archived

use HeroBot for 1.21.11+


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
Fixes
  • Fixed gliding to work with /player jump while in midair

  • Fixed fall distance not updating correctly (fixes crit and mace behavior)

  • Fixed downward motion not being saved in some cases

  • Fixed /player look yaw/pitch being reversed

  • Fixed multiple edge cases related to fake player movement and actions

Fake Player Changes
  • Added a toggle to allow/disallow shield stunning for players

  • Added target selector support to player commands

  • Renamed /player <name> spawn to /playerspawn <name>

    • now it is /playerspawn <name> [at <coords> [in <gamemode> [on <world>]]]
  • 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 feet

    • closest - looks at the closest point of the entity’s hitbox

  • Added itemCd command for item cooldown control

    • itemCd - 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
Distance Command Changes
  • Changed /distance to store spherical distance values into scoreboards

  • Added e argument to /distance for higher scale

    • for example: /distance from HerobaneNair to TheobaldTheBot e 4 while we're 4 blocks away will return 4000 to be stored in a scoreboard as needed
  • Added support for measuring distance between two entities

  • Added horizontal and vertical distance measurement:

    • /distance from <from> to <to> horizontal|vertical

    • Allows measuring horizontal or vertical distance between entities or positions

Carpet Rule Changes
  • 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 behavior

    • most - affects non-solid blocks except glowstone and redstone-redirecting blocks (buttons, levers, etc.)

    • true - prevents all block damage

Версии

ВерсияКаналИграЗагрузчикиДатаСкачать
1.21.5_1.4.0Альфа1.21.5fabric16 января 2026 г..jar (1.5 МБ)
1.2.0Релиз1.21.4fabric16 мая 2025 г..jar (1.5 МБ)
1.2.0Релиз1.21, 1.21.1fabric16 мая 2025 г..jar (1.5 МБ)
1.1Бета1.21, 1.21.1fabric12 сентября 2024 г..jar (1.5 МБ)
1.0Бета1.21, 1.21.1fabric10 сентября 2024 г..jar (1.5 МБ)

Ченджлог

1.21.5_1.4.0Альфа1.21.5 · 16 января 2026 г.

Changes & Fixes

Fixes

  • Fixed gliding to work with /player jump while in midair
  • Fixed fall distance not updating correctly (fixes crit and mace behavior)
  • Fixed downward motion not being saved in some cases
  • Fixed /player look yaw/pitch being reversed
  • Fixed multiple edge cases related to fake player movement and actions

Player Commands

  • Added target selector support to player commands
  • Renamed /player <name> spawn to /playerspawn <name>

/player look

  • 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 feet
    • closest — looks at the closest point of the entity’s hitbox

Fake Player Actions

  • 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

Distance Measurement

  • Changed /distance to store spherical distance values into scoreboards
  • Added scale argument to /distance for higher precision
  • Added support for measuring distance between two entities
  • Added horizontal and vertical distance measurement:
    • /distance from <from> to <to> horizontal|vertical
    • Allows measuring horizontal or vertical distance between entities or positions

Item Cooldowns

  • Added itemCd command for item cooldown control
    • itemCd — resets all item cooldowns
    • itemCd minecraft:shield — returns the shield delay in ticks as a storable value
    • itemCd minecraft:shield reset — resets the shield delay
    • itemCd minecraft:ender_pearl set — applies the default pearl cooldown without using a pearl
    • itemCd minecraft:ender_pearl set <ticks> — applies a custom total cooldown duration
  • Enables custom application, retrieval, and resetting of item cooldowns

Carpet Rules

  • 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 behavior
    • most — affects non-solid blocks except glowstone and redstone-redirecting blocks (buttons, levers, etc.)
    • true — prevents all block damage
1.2.0Релиз1.21.4 · 16 мая 2025 г.
  • Fakeplayer no longer disconnects on death, instead respawns where it was originally spawned, making bot death way less annoying to deal with in a datapack
  • Added /player disconnect subcommand for the fakeplayer
  • Added Carpet setting for toggling shield stunning! usage: /carpet shieldStunning <true/false>
  • Fixed knockback issues (mainly with knockback enchanted swords during fire ticks)
  • Added a poor man's @s target selector to the /player command. By using /execute as ... run player s ..., fake players are now able to target themselves with commands. This removes the need to hard code bot names in datapacks, and allows for controlling multiple players with a single /execute command
1.2.0Релиз1.21, 1.21.1 · 16 мая 2025 г.
  • Fakeplayer no longer disconnects on death, instead respawns where it was originally spawned, making bot death way less annoying to deal with in a datapack
  • Added /player disconnect subcommand for the fakeplayer
  • Added Carpet setting for toggling shield stunning! usage: /carpet shieldStunning <true/false>
  • Fixed knockback issues (mainly with knockback enchanted swords during fire ticks)
  • Added a poor man's @s target selector to the /player command. By using /execute as ... run player s ..., fake players are now able to target themselves with commands. This removes the need to hard code bot names in datapacks, and allows for controlling multiple players with a single /execute command
1.1Бета1.21, 1.21.1 · 12 сентября 2024 г.
  • Removed explosion mixins for compatibility with Lithium (and Lunar Client)
  • Added hardcoded function trigger for detecting shield disables through the PracticeBot datapack
  • Removed redundant /stopm command
1.0Бета1.21, 1.21.1 · 10 сентября 2024 г.

Included fixes for Carpet fake players:

  • Fixed reach values for creative and survival fake players
  • Attacking always swings and resets cooldown regardless of target
  • Fixed buggy shield behavior and KB
  • Using items like consumables, bows, shields, etc. now slows down the bot the proper amount
  • Crouching no longer stops sprinting
  • Starting a continuous action no longer stops any previous continuous actions of the same type
  • Added stopm player subcommand to stop player movement without affecting continuous actions, allowing full control of movement while using items

Полная история изменений — на Modrinth.

Комментарии

Загружаем…