▶️ ЗАБЕРИ СВОИ 8 ПОДАРКОВ 🎁 ПРИ СОЗДАНИИ СВОЕГО МАЙНКРАФТ СЕРВЕРА
Моды/Code of Copper
Code of Copper

Code of Copper

Programmable Copper Golems. Fully text-based programming language in a vanilla datapack.

1.8K
51
Все версииCode of Copper v0.3.0

Code of Copper v0.3.0

Release2 г. назад

Список изменений

[0.3.0] - 2023-11-26

Overhauled the entire language.

Added

  • Custom Functions
    • Function definitions
    • Function calls
    • return keyword
  • Stdlib Functions
    • random: to generate random numbers
    • time: to get the current gametime
  • Var keyword for global variables
  • Assignment operators such as += and -=
  • Booleans
  • Constants
  • Resource literal
  • << and >> operators
  • Objects can be indexed with dot (.) notation
  • Other miscellaneous operators

Changed

  • Rewrote all documentation
    • Now contains every language feature
    • Better documented and easier to understand
    • Available here
  • Many instructions are now built in functions
    • You can now use functions such as getblock inside expressions
  • $INVENTORY and $POS are now functions: inventory() and pos()
  • pos() now returns an object, instead of an array
  • inventory() now returns a array of resources, rather than strings
  • Variables only exist within the scope that they are created
  • Predicates updated to use 1.20 format
  • The entire interpreter was re-written from the ground up
    • It should now be far more reliable going forwards
  • Place now takes a resource rather than a slot number
  • Minus operator no longer removes items from objects/arrays

Fixed

  • Regex matcher is now correctly passed a string's value
  • Backslashes, unless escaping /, no longer need to be escaped themselves.

Файлы

Code of Copper-v0.3.0.zip(390.07 KiB)
Основной
Скачать
CodeOfCopperRP.zip(40.11 KiB)
Скачать

Метаданные

Канал релиза

Release

Номер версии

0.3.0

Загрузчики

Версии игры

1.20–1.20.2

Загрузок

175

Дата публикации

2 г. назад

Загрузил

ID версии

Главная