promotional bannermobile promotional banner
premium banner
Adds some commands, for Dynamic Times,

Description

Version: 1.0.0

Platform: NeoForge 1.21.1

Developer: Created using MCreator

This utility mod adds administrative commands and entity attributes to enhance gameplay control and information accessibility. It focuses on movement manipulation, time logging, and combat mechanics.


### Key Features

1. Utility Commands

  • /boost: Instantly launches the executing entity into the air.

    • Functionality: Applies a vertical velocity (Y-axis) of 1 while keeping X and Z movement at 0.

    • Permission: No requirement (available to all players by default).

  • //Current-Time: A diagnostic command that displays the real-world date and time.

    • Functionality: Sends a chat message in a bold, dark-gray format (#333333).

    • Format: Day of week, Month Day, Year - HH:mm followed by the name of the entity who ran the command.

2. Combat Attributes

  • Entity Swing No Cooldown: A custom attribute added to the game (CUSTOM:EntitySwingCooldown).

    • Logic: If this attribute value is set to 1, the mod automatically resets the attack cooldown for the item in the entity's hand to 0 ticks.

    • Affected Entities: This attribute is applied to all Players and Bats by default.


### Technical Details

  • Namespace: datetime_and_useful_commands

  • Language Support: English (US) included.

  • Procedures:

    • BoostFunction: Handles the logic for the entity push.

    • CurrentTimeFunction: Handles the time-to-string formatting and chat broadcasting.

    • SwingCooldown: A conditional check that runs to bypass weapon swing delays based on the custom attribute.