BasicallyUtilCommands
ModMIT

BasicallyUtilCommands

a serverside mod adding commands useful to mapmakers and others

624
Downloads
5
Followers
3 months ago
Updated
📦
20
Versions

📖About BasicallyUtilCommands

fully serverside mod adding new commands and more!

datapackers or mapmakers may find this useful

commands

/eval

  • allows you to input any mathematical expression, the command will calculate it and return its result
  • has support for some functions:

    min(), max(), sum(), avg(), len(), abs(), floor(), ceil(), round(), sqrt(), pow(), sin(), cos(), tan(), clamp()

  • some of the functions are redundant i know, i dont care
  • you can use scores in expressions like so: <name>?<objective>
  • known issue: in 1.9-1.20, there is no way to check a score without setting it, so when using a selector with entities that dont have a score, their score will be set to 0

    example: `/eval 2.5
    /raycast run

  • summons a marker entity with the tag "BUC.raycast"
  • moves it forward by , times
  • runs at each step

/distance

  • returns the distance between the command pos and the target position multiplied by the scale

/check <blocks|intersect|collision>

  • /check blocks
  • /check intersection
  • /check collision

/check blocks returns how many matching blocks it found in a cuboid area

/check intersection returns how many of the selected entities hitboxes are intersecting with the position the command is executed at

/check collision returns how many blocks the entity is intersecting with

/motion <set/add> <with|to|at>

  • applies motion in the direction of the executed command
  • with allows a 3d direction input
  • to allows a 3d position input
  • at allows a 2d rotation input

    /motion multiply

  • multiplies the motion of the target by the factor, masked to the set axes

/heal

  • heals entities by set amount of health

/ignite <set/add>

  • sets the selected entities on fire for the specified duration

/entitify <block_display/falling_block> [keep/remove] [tag(s)]

  • turns the block at the target pos into an entity
  • multiple tags can be added: /entitify ~ ~ ~ block_display keep tag","another tag
    (thanks to json formatting: Tags:["+ <tag> +"])

/repeat run

  • runs times
  • waits ticks before each execution, including the first one

  • the mod also adds a new player NBT tag called PlayerName which simply contains the players name

more features will be added in the future, feel free to suggest features via github issues

⚠️older versions may lack some described features, the mod description is updated to match the latest version