Skip to content

Commit 06e0f13

Browse files
committed
release(0.3.0-beta-2): rewrite the interpreter, functions in expressions
1 parent e44f9f9 commit 06e0f13

File tree

2 files changed

+34
-1
lines changed

2 files changed

+34
-1
lines changed

CHANGELOG.md

+33
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,39 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.3.0-beta-2] - 2023-05-25
9+
We rewrote the entire interpreter.
10+
11+
### Added
12+
- Resource literal
13+
- Added << and >> operators
14+
- Objects can be indexed with dot (.) notation
15+
16+
### Changed
17+
- Predicates updated to use 1.20 format
18+
- The entire interpreter was re-written from the ground up
19+
- It should now be far more reliable going forwards
20+
- Place now takes a resource rather than a slot number
21+
- Minus operator no longer removes items from objects/arrays
22+
23+
### Fixed
24+
- Custom functions now can be called from expressions.
25+
26+
## [0.3.0-beta-1] - 2023-05-25
27+
Fix all the stupid bugs of 0.3.0-alpha-1
28+
29+
### Added
30+
- Constants
31+
32+
### Fixed
33+
- Prevent running bots with compile errors
34+
- Bot no longer loses error messages when recompiling programs
35+
- Return not exiting functions
36+
- Functions can be called within expressions
37+
- Functions called within functions return values properly
38+
- Random function is now actually random
39+
- Functions can be defined and called with no arguments/parameters
40+
841
## [0.3.0-alpha-1] - 2023-03-23
942
Functions
1043

data/bot/functions/version.mcfunction

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ data modify storage bot:version name set value "Code of Copper"
33
data modify storage bot:version major set value 0
44
data modify storage bot:version minor set value 3
55
data modify storage bot:version patch set value 0
6-
data modify storage bot:version suffix set value "alpha-1"
6+
data modify storage bot:version suffix set value "beta-2"
77

88
execute if data storage bot:version {suffix:""} run tellraw @a {"nbt":"name","storage":"bot:version","extra":[{"text":" v","extra":[{"nbt":"major","storage":"bot:version","extra":[{"text":"."},{"nbt":"minor","storage":"bot:version"},{"text":".","extra":[{"nbt":"patch","storage":"bot:version"}]}]}]}]}
99

0 commit comments

Comments
 (0)