614 Commits

Author SHA1 Message Date
MihailRis
7afdde5912 add world.get_generator 2024-10-26 22:46:26 +03:00
MihailRis
137e6fc767 add utf8.sub 2024-10-26 11:24:58 +03:00
MihailRis
ce7698e9ee rename utf8.encode to utf8.tobytes, utf8.decode to utf8.tostring 2024-10-26 10:54:33 +03:00
MihailRis
3dc334e778 add utf8.length, utf8.codepoint 2024-10-26 10:32:34 +03:00
MihailRis
52ed1abf1c add utf8.decode 2024-10-25 22:56:11 +03:00
MihailRis
52e62bbf95 add utf8.encode 2024-10-25 17:22:54 +03:00
MihailRis
751cde7503 add core.open_folder 2024-10-25 14:07:32 +03:00
MihailRis
3b5857ee62 fix: on_block_placed not calling 2024-10-23 12:10:02 +03:00
MihailRis
5dce372156 fix glm quaternions issues 2024-10-23 09:45:31 +03:00
MihailRis
1f4ef8a4de fix 'access denied' in file.remove for entry points 'export', 'config' 2024-10-21 12:16:24 +03:00
MihailRis
5ca83a572b
Merge pull request #315 from Sergwest585/main
small ide stuff + search controls
2024-10-20 06:03:23 +03:00
Sergwest585
67f7006ad0 add get_binding_text() for script api 2024-10-20 01:22:49 +03:00
Xertis
5ffa6966b2
fix item.caption 2024-10-19 18:56:30 +03:00
MihailRis
6e6f9616cd fix fatal error on wrong placement args 2024-10-19 05:33:59 +03:00
MihailRis
4844997c6a add bjson library & update /doc/en/scripting/filesystem.md 2024-10-17 09:04:31 +03:00
MihailRis
faca68e6c3 replace argument 'seed' with global constant 'SEED' 2024-10-16 08:46:32 +03:00
MihailRis
0ad59fadd9 rename lua_type_voxelstructure.cpp to lua_type_voxelfragment.cpp 2024-10-16 08:07:36 +03:00
MihailRis
7330896eb4 add heightmap:sub(...) operation 2024-10-16 05:15:07 +03:00
MihailRis
c2cfe64b7e update doc/ru/** scripting-related docs 2024-10-16 02:00:46 +03:00
MihailRis
59c4e26eda feat: heightmap-inputs 2024-10-16 00:38:58 +03:00
MihailRis
5e79bc07e9 add Heightmap:mixin(...) 2024-10-15 22:19:06 +03:00
MihailRis
08ebfa15db add read-only UI contentOffset property 2024-10-15 05:56:15 +03:00
MihailRis
fbca439b2d fix: extended block always main segment passed to on_iteract 2024-10-15 05:24:52 +03:00
MihailRis
4dfa235f12 add item.caption(...) function & move item library docs to libitem.md 2024-10-15 04:48:01 +03:00
MihailRis
c34bc184a4 update heightmap:dump(...) filename argument 2024-10-15 02:04:17 +03:00
MihailRis
48143c5a2b add fragment.crop, fragment:crop() & fix fragments rotation when width is not equal to depth & fix extra structures placements 2024-10-15 00:03:06 +03:00
MihailRis
fd2bd15658 update voxel fragments lua api & replace structure.save command with fragment.save & add 'export' entry point 2024-10-14 19:39:58 +03:00
MihailRis
b9074ebe47 fix block.get_hitbox with non rotatable blocks 2024-10-14 09:43:51 +03:00
MihailRis
04e490c896 add config/defaults.toml 2024-10-14 02:56:33 +03:00
MihailRis
de00414456 add generator 'caption' property 2024-10-13 22:53:12 +03:00
MihailRis
b5c1050f43 add placements priority 2024-10-11 18:37:03 +03:00
MihailRis
a578cca325 add 'place_structures_wide' callback 2024-10-10 02:00:13 +03:00
MihailRis
6e0304248b add stdmin.lua 2024-10-09 05:30:02 +03:00
MihailRis
116cbd61db feat: 'lines' (cave-like structures/tunnels) (WIP) 2024-10-08 02:32:45 +03:00
MihailRis
d9a44f3b87 minor refactor 2024-10-06 21:07:27 +03:00
MihailRis
73d96fd4f7 move generator script execution to an isolated Lua state 2024-10-06 18:23:33 +03:00
MihailRis
091805a16e refactor scripting_world_generation.cpp 2024-10-06 17:28:44 +03:00
MihailRis
756de7b0b1 refactor lua_engine 2024-10-05 17:32:03 +03:00
MihailRis
736fdbf964 move lua libs to /logic/scripting/lua/libs 2024-10-05 00:53:41 +03:00
MihailRis
ea9ad08bfd Merge branch 'main' into heightmaps 2024-10-03 19:12:37 +03:00
MihailRis
f7492ce449 add lua dv::bytes support 2024-10-03 18:23:50 +03:00
MihailRis
5ff00df527 micro refactor 2024-10-02 20:24:50 +03:00
MihailRis
87cf6c41bc update block.get_field, block.set_field and fields-related docs 2024-10-02 17:56:19 +03:00
MihailRis
28d746f371 implement blocks data saving/loading 2024-09-30 23:42:16 +03:00
MihailRis
e84c79839c update blocks data lifetime 2024-09-30 21:33:19 +03:00
MihailRis
4f559c1086 refactor libblock 2024-09-30 20:15:22 +03:00
MihailRis
fc99343fb5 add block.get_field(...), block.set_field(...) 2024-09-30 18:55:01 +03:00
MihailRis
e30e0083a0 add ores 2024-09-30 13:14:53 +03:00
MihailRis
e590d06bb0 add file.read_combined_list(...) 2024-09-30 01:55:42 +03:00
MihailRis
16fac768c8 add chunk_height parameter to place_structures 2024-09-29 23:39:42 +03:00