6.0 KiB
6.0 KiB
0.26 - 2025.01.24
Documentation for 0.26
Table of contents:
Added
- headless mode `--headless
- script execution mode
--headless --script filename - test execution mode
--headless --test filename - vctest console application
- libraries:
- app
- byteutil
- in-game chat
- text markup: Markdown
- syntax-highlighting: Lua
- http post requests
Scriptsmenu page for app scripts- binding
hud.chat - user-defined console.submit
- events:
- on_chunk_present
- on_chunk_remove
- on_inventory_open
- on_inventory_closed
- canvas ui node
- settings:
graphics.dense-render
- block properties:
culling
- particles properties:
angle_spreadmin_angular_vel,max_angular_vel
- bytearray support in serializers
- ui properties:
- uinode:
cursor - textbox:
markup,syntax,text-color - label:
markup
- uinode:
- base pack:
- add transparent leaves render mode
- add falling leaves particles
- 'states' parameter in base:falling_block
- nameless worlds
- SIGTERM handler
- project:
- clang Windows workflow
- engine tests
Changes
- moved
devtools.consolebinding handler to Lua - move
key:escapebinding handler to Lua - upgrade dead emitters garbage collection
- reserved player entity ids:
0- none (example: dead),-1- auto (spawns new one) - input.add_callback("key:name") support and add optional
ownerargument
Functions
- app.tick
- app.sleep
- app.sleep_until
- app.new_world
- app.open_world
- app.save_world
- app.close_world
- app.reopen_world
- app.delete_world
- app.config_packs
- app.reconfig_packs
- app.get_setting
- app.set_setting
- app.get_version
- app.get_setting_info
- app.load_content
- app.reset_content
- app.is_content_loaded
- app.quit
- entity:get_player
- start_coroutine
- gui.clear_markup
- gui.escape_markup
- gui.alert
- gui.confirm
- gui.load_document
- console.get
- world.get_chunk_data
- world.set_chunk_data
- world.save_chunk_data
- world.count_chunks
- player.create
- player.delete
- player.is_suspended
- player.set_suspended
- player.is_loaded_chunks
- player.set_loading_chunks
- network.post
- table.shuffle
- table.deep_copy
- math.normalize
- math.round
- byteutil.pack
- byteutil.unpack
- file.name
- file.stem
- file.ext
- file.prefix
- hud.set_allow_pause Methods:
- uinode:reposition
- socket:available
- textbox:lineAt
- textbox:linePos New overloads:
- block.get_X, block.get_Y, block.get_Z
- player.get_rot
Fixes
- fix on_block_interact & fix segfault after engine finished
- fix item.properties
- fix base:bazalt durability
- fix camera-related bugs
- fix: grabbed item is deleted on inventory close
- fix block overriding
- fix faces culling when 'light-passing' is false
- fix particles lighting
- fix non-skipping particles
- fix content stats
- fix byte manipulation functions
- fix error handling in events and runnables
- fix small dumb legacy memory leak
- fix grass lighting
- small fixes in translation.
- fix errors handling in event handlers
- fix lua stack manipulations
- fix lua::create_lambda
- fix some UB
- fix rigidbody:is_enabled
- fix panel elements removal
- fix infinite block fields conversion requests
- fix data_buffer:put_number
- fix textbox horizontal scroll & fix console log width
- fix is_array
- fix neighbour chunk update
- fix lamp material