Function Compiler

Function Compiler

Mod

This mod allows the server to automatically compile most of the functions to Java bytecode

Server CursedOptimization

2,580 downloads
29 followers
Follow Save
Host your Minecraft server on BisectHosting - get 25% off your first month with code MODRINTH.
Filter loader...
Filter versions...

Adds commands:

  • scoreboard players enable
  • title
  • tellraw

Adds base for macro support, macros are only supported for score holder names, for example $scoreboard players set macro_$(test) objective 1

Adds basic text support (only text, keybind, and translate component types, hoverEvent and clickEvent formatting options are also not supported)

Fixes bugs:

  • execute unless score runs on the wrong conditions
  • scoreboard players operation does not try creating the score if it doesn't exist

Adds commands:

  • execute anchored
  • execute on vehicle
  • return <value>
  • return fail

Adds 1.21 support

Adds selector: @n (1.21 only)

Adds local coordinates

Adds /mcfc for enabling/disabling running compiled code, requires permission level 3 to use

Adds commands:

  • data modify storage <storage> <path> set value <value>
  • execute store result storage <storage> <path> int 1
  • function (with argument support)

Adds selectors: @p, @r

Adds selector argument: sort

Adds nbt support internally

Adds nbt paths: foo.bar, foo[0]

Adds a better instruction optimizer

Functions compile in the background now

Fixes bugs:

  • @e returned dead players
  • Commands which remove entities from the world broke selectors
  • execute align does not work
  • Using /function in non-compiled functions does not run the compiled variant (affects 1.20.4+)

Fixes bugs:

  • The game crashed after a attribute that isn't a RangedAttribute was loaded

Project members

EpicPix

Owner

Details

Licensed LGPL-3.0-only
Published a year ago
Updated 3 months ago