Commit Graph

12980 Commits

Author SHA1 Message Date
teknomunk
121550a635 Hopper minecarts pull from containers above rail 2024-12-31 02:36:18 +01:00
teknomunk
3745a27f8c Rework in preparation to add code to pull from containers into the hopper minecart 2024-12-31 02:36:18 +01:00
teknomunk
bfe09c7c3f Move fiction constant to top of file, suppress cart flips when direction reverses due to gravity or end of track 2024-12-31 02:36:18 +01:00
teknomunk
5441a23570 Add code to reattach carts to rail when data corruption occurs, fix bug in last commit that caused carts to bury into the ground 2024-12-31 02:36:18 +01:00
teknomunk
6b37618b72 Remove dip into the ground that occured when gravity caused the cart to reverse directions 2024-12-31 02:36:18 +01:00
teknomunk
8709ba7be8 Implement gravity, move orientation update to own function, fix cart stopping in process_acceleration 2024-12-31 02:36:18 +01:00
teknomunk
2e78e9cdad Change connected railcar behavior to fix unreliable end of track stopping, set maximum acceleration of powered rails to 8 blocks per second (per https://minecraft.fandom.com/wiki/Powered_Rail), stop powered rails from powering the block underneath it (allows below rail hopper to work while the rail is powered like in https://www.youtube.com/watch?v=szjO0-duTAk), modify mcl_hoppers to allow triggering a hopper pull once the minecart is stopped on top of the hopper and wait before allowing the cart to move to allow redstone circuits time to process 2024-12-31 02:36:18 +01:00
teknomunk
f082e4a554 Make minecart always stop at correct location at end of track, fix crash when placing chest minecart after changing how staticdata is handled 2024-12-31 02:36:18 +01:00
teknomunk
05aef66668 Modify do_movement_step to move to always move to the edge of the current rail segment before updating the direction to prevent oscillations at corners, fix end of track stop location with new movement behavior, disable experimental controls, swap code to detach the driver on float with a call to detach_driver() 2024-12-31 02:36:18 +01:00
teknomunk
960192024f Add DEBUG flag, stop small do_movement_step's from occuring (this improves but doesn't eliminate the bug I with the a6be179ed commit), add recovery when staticdata field gets lost 2024-12-31 02:36:18 +01:00
teknomunk
70aa9004be Fix initial_properties for minecarts 2024-12-31 02:36:18 +01:00
teknomunk
0c46c2fcc2 Change left,right and back vectors to matrix math results with no branching 2024-12-31 02:36:18 +01:00
teknomunk
c489e0c380 Remove now unused properties from minecart definition, convert more vectors to use vector.new syntax 2024-12-31 02:36:18 +01:00
teknomunk
d9d5245d59 Complete rewrite of minecart movement that resolves https://git.minetest.land/MineClone2/MineClone2/issues/2446 and https://git.minetest.land/MineClone2/MineClone2/issues/247#issuecomment-50960 but has a bug where carts will synchronize movements that I am still investigating 2024-12-31 02:36:18 +01:00
teknomunk
d1550d9e84 Change staticdata serialization (with migration from old data), disable debugging code used to investigate https://git.minetest.land/MineClone2/MineClone2/issues/2446 2024-12-31 02:36:18 +01:00
teknomunk
087d5f0f64 Change to vector.new from {x=...}, relocate movement code to own function for future changes 2024-12-31 02:36:18 +01:00
the-real-herowl
e26b587976 Merge pull request 'Add stonecutter output overlay texture' (#4740) from vl_stonecutter_overlay_texture into master
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4740
Reviewed-by: kno10 <kno10@noreply.git.minetest.land>
2024-12-31 02:25:13 +01:00
SmokeyDope
473590efbc update overlay texture in stonecutter code 2024-12-31 02:25:13 +01:00
SmokeyDope
e7b4cedbd3 Add stonecutter output overlay texture 2024-12-31 02:25:13 +01:00
kno10
28c0a3072c set_yaw for shulker returns nil, causing a nil arithmetic error. (#4775)
Fixes a prevented crash error.

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4775
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-12-31 01:23:47 +01:00
kno10
f83d8c07ad No timer for crying obsidian with a solid node below (#4754)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4754
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-12-30 19:40:07 +01:00
kno10
0631319a00 Fix crash with crossbow rockets (#4771)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4771
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-12-30 19:13:00 +01:00
teknomunk
cf5fe25b7d Fix typos (#4768)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4768
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: teknomunk <teknomunk@protonmail.com>
Co-committed-by: teknomunk <teknomunk@protonmail.com>
2024-12-29 16:59:31 +01:00
kno10
11e8cbc39b Use all three schematics when growing crimson/warped funghi (#4758)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4758
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-12-29 16:37:07 +01:00
kno10
cb1814f6ae tooldef can be nil (#4767)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4767
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-12-29 15:56:57 +01:00
the-real-herowl
b41960d5ed Merge pull request 'New weapons' (#4261) from hammers_spears into master
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4261
2024-12-29 08:09:33 +01:00
the-real-herowl
44cf59b769 Added grey sand 2024-12-29 08:09:33 +01:00
the-real-herowl
6a6f033197 Spear throw charging
- spear throw has to be charged for full power
- bow charging is improved and compatible with spears
- fixed a crash
2024-12-29 08:09:33 +01:00
the-real-herowl
fa41870bb5 Reworked bow loading code 2024-12-29 08:09:33 +01:00
the-real-herowl
14ec7fe98f Fixed a crash 2024-12-29 08:09:33 +01:00
the-real-herowl
8a252342a5 Minor improvements 2024-12-29 08:09:33 +01:00
teknomunk
3f46519954 Remove duplicate function (manual rebase error) 2024-12-29 08:09:33 +01:00
teknomunk
87d62092cc Add mirrored spear crafting recipe 2024-12-29 08:09:33 +01:00
teknomunk
127840dc4c Remove debug logging 2024-12-29 08:09:33 +01:00
teknomunk
23c74cf159 Wear spears when thrown, add spear recipe 2024-12-29 08:09:33 +01:00
teknomunk
911ebde12b Add initial craft recipe for hammers 2024-12-29 08:09:33 +01:00
teknomunk
62dc013787 Fix item duplication bug, drop spears that start sliding 2024-12-29 08:09:33 +01:00
teknomunk
7fa0441d7a Remove debug print, remove dead code, replace magic numbers in tool uses with uses.* 2024-12-29 08:09:33 +01:00
teknomunk
bdf926daa2 Remove old spear implementation, make spears drop as an item when removed 2024-12-29 08:09:33 +01:00
teknomunk
ba2af67c0b Start rewriting spears using vl_projectile API 2024-12-29 08:09:33 +01:00
teknomunk
c1691e65a8 Implement mcl_util.remove_entity() and convert projectile code to use it 2024-12-29 08:09:33 +01:00
the-real-herowl
5b7c1a8d4c Reworked hammer crushing
- crushing is now done by digging with a hammer
- cobble is now crushable
2024-12-29 08:09:33 +01:00
the-real-herowl
bf77996b57 Added spears 2024-12-29 08:09:33 +01:00
teknomunk
bc94bc4a41 Resolve merge conflict 2024-12-29 08:09:33 +01:00
the-real-herowl
ce95290fa8 Added hammers 2024-12-29 08:09:33 +01:00
the-real-herowl
8d3f3b4715 Merge pull request 'Fireworks update' (#4724) from fireworks_update into master
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4724
2024-12-29 08:08:52 +01:00
the-real-herowl
8f33a0678e Renamed the group 2024-12-29 08:08:52 +01:00
the-real-herowl
c9bc8ecbd2 Fixed firework star description 2024-12-29 08:08:52 +01:00
the-real-herowl
f8f30b7311 Firework rockets are no longer infinite in survival 2024-12-29 08:08:52 +01:00
the-real-herowl
8e77fece50 Review commemts implemented 2024-12-29 08:08:52 +01:00