Commit Graph

11470 Commits

Author SHA1 Message Date
teknomunk
c02ce8b8e7 Fix typo, set use_texture_alpha = clip for all rail 2024-12-31 02:36:18 +01:00
teknomunk
fa29e3410b Fix several undefined global warnings, fix cart movement when over maximum speed, fix cart reattachment to sloped track 2024-12-31 02:36:18 +01:00
teknomunk
356328ce4b Revert changed made to debug minecart-updates integration into tsm_railcorridors 2024-12-31 02:36:18 +01:00
teknomunk
10865e6dbb Make punch move minecarts a little, comment out more debug prints 2024-12-31 02:36:18 +01:00
teknomunk
0a935d1f99 Fix visual artifacts on the sides of rails 2024-12-31 02:36:18 +01:00
teknomunk
689b6a8d30 Stop carts from reversing when they stop, make stopped carts try to start moving in the direction the player is facing 2024-12-31 02:36:18 +01:00
teknomunk
8351f39fb1 Fix crash after entering a minecart not on rails 2024-12-31 02:36:18 +01:00
teknomunk
de01ba45a6 Fix placed rail conversion, start automatic inventory rail conversion 2024-12-31 02:36:18 +01:00
teknomunk
4c56707336 Fix players repelling carts with new player metadata system 2024-12-31 02:36:18 +01:00
teknomunk
1831e34b09 Cleanup debug prints 2024-12-31 02:36:18 +01:00
teknomunk
aec9665ecc Add documentation for newly exposed attach_driver 2024-12-31 02:36:18 +01:00
teknomunk
22f5369db9 Add persistent player-specific metadata into mcl_playerinfo, simple cart reattachment (only exists if the luaentity for the cart exists when the player logs in) 2024-12-31 02:36:18 +01:00
teknomunk
3bbd5a20fa More fixes for minecart-hopper movement 2024-12-31 02:36:18 +01:00
teknomunk
7990ed65f6 Get rail placement creating corners that lead into a downward sloped rail 2024-12-31 02:36:18 +01:00
teknomunk
e1ff394204 Create mcl_util.metadata_timer, fix crashes, add checks to prevent hoppers from pulling from carts that are not in the square above it 2024-12-31 02:36:18 +01:00
teknomunk
712f0b9b9b Fix hopper-minecart interaction, convert ipairs(table) to use for i=1,#table instead 2024-12-31 02:36:18 +01:00
teknomunk
d93cf5d4f5 Update mineshafts for new rail and minecarts, add loot to generated chest and hopper minecarts (and remove notes about a hack) 2024-12-31 02:36:18 +01:00
teknomunk
04d29e8f2b Give carts a small vertical lift when pushed to allow them to get back on rails 2024-12-31 02:36:18 +01:00
teknomunk
eae9a2b6ad Stop rail from being placed directly above rail (floating in air) 2024-12-31 02:36:18 +01:00
teknomunk
7a1e0d9a52 Fix sloped power,activator and detector rails, remove debug print 2024-12-31 02:36:18 +01:00
teknomunk
9f192e87f3 Modify mcl_entity_invs to add support for save/load items hooks in entities, add save/load hooks to minecarts to store item list in the minecart data and not in the entity data so that respawn doesn't destroy items 2024-12-31 02:36:18 +01:00
teknomunk
e208e9c4ce Add documentation on the rail 2024-12-31 02:36:18 +01:00
teknomunk
61a81cc143 Add documentation on file structure and overviewes of each file 2024-12-31 02:36:18 +01:00
teknomunk
a9b71ea7ce Fix crashes, fix link in documentation 2024-12-31 02:36:18 +01:00
teknomunk
a364fa8112 More documentation, add myself to copyright list in README.txt 2024-12-31 02:36:18 +01:00
teknomunk
f7398db6d0 More minor changes to API.md, start overall implementation documentation 2024-12-31 02:36:18 +01:00
teknomunk
434c55350d Fix table of contents 2024-12-31 02:36:18 +01:00
teknomunk
7dcc1046a6 Finish writing API documentation, remove drop_railcarts (replaced by try_detach_minecart), rename constants to ALL CAPS for consistency, change mcl_minecarts. to mod. for API function definitions 2024-12-31 02:36:18 +01:00
teknomunk
7c1b7801ce Nearly finish API documentation, create mcl_minecarts.add_blocks_to_map() 2024-12-31 02:36:18 +01:00
teknomunk
c44d291fee Continue writing API documentation, update call signatures for a couple of API functions 2024-12-31 02:36:18 +01:00
teknomunk
19f21db8c9 Change document formatting, finally move cactus cart dropping to node definition for mcl_core:cactus 2024-12-31 02:36:18 +01:00
teknomunk
dba86a8d60 Correct crashes/item duplication with dropping carts, start API documentation 2024-12-31 02:36:18 +01:00
teknomunk
48b1a4d7e5 Fix cart controls, cart pushing 2024-12-31 02:36:18 +01:00
teknomunk
867fc20782 Fix typo in rail replacement mapping, fix several crashes 2024-12-31 02:36:18 +01:00
teknomunk
74a14a5a74 Implement movement thru tee rails 2024-12-31 02:36:18 +01:00
teknomunk
1eda16a1a1 Tune respawn distance limit 2024-12-31 02:36:18 +01:00
teknomunk
135eea4de4 Fix crashes 2024-12-31 02:36:18 +01:00
teknomunk
c99f972b31 Remove memory leak for cart data, check distance to players before respawning distant carts to prevent adding entities that are immediately inactivated 2024-12-31 02:36:18 +01:00
teknomunk
4dccfff1d0 Implement offline/out of range minecart movement and fix minecart respawning, remove railtype tracking 2024-12-31 02:36:18 +01:00
teknomunk
a500f554e0 Remove do_movement dependency on the existence of a cart luaentity 2024-12-31 02:36:18 +01:00
teknomunk
7c7a987342 Fix undefined global warning, move player off to the side of a cart when dismounting so trains don't get pushed apart when getting out 2024-12-31 02:36:18 +01:00
teknomunk
265a25d6ae Make trains containing a player in a minecart function, minor cleanup in mcl_playerinfo 2024-12-31 02:36:18 +01:00
teknomunk
2e41f2df48 Fix crashes in train logic, allow breaking apart trains 2024-12-31 02:36:18 +01:00
teknomunk
d280e2e942 Implement train reversing 2024-12-31 02:36:18 +01:00
teknomunk
88ed70ce92 Repair vectors in cart data, mostly fix train movement bugs (still possible to have a furnace minecart flip, without the train also flipping) 2024-12-31 02:36:18 +01:00
teknomunk
d6e6194316 Add cart entity respawn/destroy to match cart data (partially working) 2024-12-31 02:36:18 +01:00
teknomunk
7bd95257bd Give furnace minecart minimum velocity when lit, add train separation code, update logging code, add sequence number to entity staticdata to allow respawn/despawn when carts move when the entity is unloaded 2024-12-31 02:36:18 +01:00
teknomunk
40a5184703 Fix rail detach crash, make tnt minecarts explode if they hit something hard (off rails) 2024-12-31 02:36:18 +01:00
teknomunk
e680869cbd Make sure carts get detatch if the rail under them is removed 2024-12-31 02:36:18 +01:00
teknomunk
eb0f82bdfb Fixish reorganizing, initial train implementation 2024-12-31 02:36:18 +01:00
teknomunk
dbeec9b542 Major reorganization, start setup for trains 2024-12-31 02:36:18 +01:00
teknomunk
1b9c149803 Make sure carts that collide move in the same direction the colliding cart was 2024-12-31 02:36:18 +01:00
teknomunk
09f044245e Add utilities to convert between an ObjectRef, it's active object id and a 128bit uuid, move minecart data from entity staticdata to mod storage to eventually allow updating carts when out of range of players and also track what carts are alive, implement on-rail cart collisions 2024-12-31 02:36:18 +01:00
teknomunk
8117b9010a Harden against unknown nodes 2024-12-31 02:36:18 +01:00
teknomunk
d318390778 Allow players to push minecarts that are not on track 2024-12-31 02:36:18 +01:00
teknomunk
f089d0a702 Fix rails in creative inventory, make minecart with tnt not crash server when exploding, make minecart with tnt slightly more powerful than regular tnt 2024-12-31 02:36:18 +01:00
teknomunk
60ee3a06b9 Fix rail movement regressions 2024-12-31 02:36:18 +01:00
teknomunk
e1b973fbf5 Move cart code to its own file, more code cleanup, add aliases for old track items 2024-12-31 02:36:18 +01:00
teknomunk
b59d6d37dc Cleanup code, restore uphill/downhill cart movement, completely remove old rail 2024-12-31 02:36:18 +01:00
teknomunk
f490846892 Get rail reattachment (especially after jumps) working correctly 2024-12-31 02:36:18 +01:00
teknomunk
e7605b7abd Make legacy rail update apply to all old rail types, add basic detached railcart physics with a stub to use mcl_physics when it gets merged 2024-12-31 02:36:18 +01:00
teknomunk
140689cd7d Silence unmaskable print statements 2024-12-31 02:36:18 +01:00
teknomunk
fdf8161d23 Add immortal item entity support, add legacy rail conversion that uses immortal item drops for corners/tees/crosses that are no longer possible 2024-12-31 02:36:18 +01:00
teknomunk
7944015266 Fix more rail connection bugs 2024-12-31 02:36:18 +01:00
teknomunk
e02906e46f Get sloped connections working correctly 2024-12-31 02:36:18 +01:00
teknomunk
48dbe97516 Re-enable rule for powering rail from underneath, have stairs block minecart movement, fix crash when lightning strikes a minecart 2024-12-31 02:36:18 +01:00
teknomunk
279733e711 Fix mcl_util.table_merge where a standard value overwrites a table, fix base definition usage, implement behavior difference when there is a solid block after a straight piece of track (this will eventually allow minecarts to fly off the end of the track) 2024-12-31 02:36:18 +01:00
teknomunk
be18edf7c6 Update all rail types to new version 2024-12-31 02:36:18 +01:00
teknomunk
40b62eea1d Reorganize 2024-12-31 02:36:18 +01:00
teknomunk
06c1b362b2 Finish reverting 08b41a3b392005e7078b09d68854e6df562d5fd7 2024-12-31 02:36:18 +01:00
teknomunk
e1c4606e8f Enable new track with get_next_dir handlers 2024-12-31 02:36:18 +01:00
teknomunk
6a9080844e Change connection rules again to allow building parallel track, tees and crosses), start implementing rail rules callbacks 2024-12-31 02:36:18 +01:00
teknomunk
f3a4d928da Add sloped rail 2024-12-31 02:36:18 +01:00
teknomunk
b870fcebd0 Fix rail visuals, add switch operation 2024-12-31 02:36:18 +01:00
teknomunk
2151644b1c Implement initial rail connection logic (no vertical track yet), experiment with texture modifiers and gravel underlay for display (not working) 2024-12-31 02:36:18 +01:00
teknomunk
8fafb32a5c Start implementing new rail nodes 2024-12-31 02:36:18 +01:00
teknomunk
4c6c506713 Implement minecart with command block 2024-12-31 02:36:18 +01:00
teknomunk
fd154f7f79 Create mesecons command API and modify commandblock to use it 2024-12-31 02:36:18 +01:00
teknomunk
3443e327ec Disable punch to move minecarts, implement punch to drop minecart, enable basic cart keyboard controls (accelerate and brake) 2024-12-31 02:36:18 +01:00
teknomunk
3f4d8f5ec2 Remove cart oscillation when pushed 2024-12-31 02:36:18 +01:00
teknomunk
be241f64fe Limit top speed of furnace minecarts to 4 blocks/second, limit total fuel time to 27 minutes 2024-12-31 02:36:18 +01:00
teknomunk
bf3872e445 Fix bug with furnace minecart at max velocity (stopped until fuel ran out), move _fueltime into staticdata 2024-12-31 02:36:18 +01:00
teknomunk
718938b0fe Fix call signature of mcl_util.hopper_pull_to_inventory, move cart-specific behaviors to _mcl_minecarts_on_step handlers, fix typo, change distance used in rail reattach code, move cart_id generation 2024-12-31 02:36:18 +01:00
teknomunk
f5616738e7 Add groups to minecart entities (for containers), fix cart node watch handling, relocate hopper_push_to_mc in mcl_hopper/init.lua, implement hopper-to-minecart push using enter/leave hooks for both straight and bent hoppers 2024-12-31 02:36:18 +01:00
teknomunk
615df7378a Add API function to remove node watch 2024-12-31 02:36:18 +01:00
teknomunk
fba7b04e82 Refactor enter/leave hook processing, add node watches for implementing hopper-to-minecart functionality (should properly handle heavy server lag without missing any time), temporarily disable hopper push/pull to minecart in mcl_hoppers, prepare to move minecart-specific on_step behavior out of main on_step function and to a minecart-specific handler 2024-12-31 02:36:18 +01:00
teknomunk
93373aa1c5 Start adding hooks for implpementing minecart with command block 2024-12-31 02:36:18 +01:00
teknomunk
ca2ede87f5 Make minecarts solid and add players pushing 2024-12-31 02:36:18 +01:00
teknomunk
f7dcb8f10f Fix forwards/backwars tilt in all directions 2024-12-31 02:36:18 +01:00
teknomunk
390ac27acf Prevent players from entering minecarts when sneaking, prevents players from causing https://git.minetest.land/MineClone2/MineClone2/issues/3188 2024-12-31 02:36:18 +01:00
teknomunk
b8fb8249e9 Increase default track friction, disable right-click to exit minecarts 2024-12-31 02:36:18 +01:00
teknomunk
d8bfa03a32 Initial tuning of acceleration/gravity, fix crash when entering an activator rail, detach mobs from cart on active activator rail, remove commented out code no longer needed 2024-12-31 02:36:18 +01:00
teknomunk
4a53a515b1 Move code that handles below-rail hoppers to handle_cart_enter, implement timestep-independent cart physics (will need tuning punch, power rail and gravityaccelerations to make game fun) 2024-12-31 02:36:18 +01:00
teknomunk
f7360be5e4 Mostly fix carts stopping between powered rails (there is still some strangeness with acceleration physics) 2024-12-31 02:36:18 +01:00
teknomunk
4656717c56 Fix diagonal movement 2024-12-31 02:36:18 +01:00
teknomunk
262063cc7c Add diagonal track movement on zig-zag track, rewrite mcl_minecarts:get_rail_direction 2024-12-31 02:36:18 +01:00
teknomunk
acd6b03371 Make TNT minecarts available in creative menu 2024-12-31 02:36:18 +01:00
teknomunk
15584dad88 Implement custom item dropper handlers, implement droppers placing minecarts 2024-12-31 02:36:18 +01:00
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
SmokeyDope
473590efbc update overlay texture in stonecutter code 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
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
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
the-real-herowl
954ba26bb6 Predefined firework explosion size 2024-12-29 08:08:52 +01:00
the-real-herowl
d4ca99f09e Added firework stars
- empty fireworks now have a simple boom
- fireworks with generic stars have a colorful boom
2024-12-29 08:08:52 +01:00
the-real-herowl
36b8689bf4 Slight vl_fireworks reorganisation 2024-12-29 08:08:52 +01:00
the-real-herowl
9365fb68d3 Firework static saving improvements 2024-12-29 08:08:52 +01:00
the-real-herowl
30f64eeb16 Show fireworks properly in creative search
...also fixes potions there, this time for real
2024-12-29 08:08:52 +01:00
the-real-herowl
67592d13ee Improve firework direction correction math
...to allow shooting them from narrow tunnels
2024-12-29 08:08:52 +01:00
the-real-herowl
4254b9311c Dispenser shoots fireworks where it's looking 2024-12-29 08:08:52 +01:00
the-real-herowl
a65684e875 Fireworks are now craftable 2024-12-29 08:08:52 +01:00
the-real-herowl
e69bd1412e Fireworks now fly in arches 2024-12-29 08:08:52 +01:00
the-real-herowl
8b0534437a Add metadata-based firework duration and force 2024-12-29 08:08:52 +01:00
the-real-herowl
a9187ab9de Squashed all rockets into one item 2024-12-29 08:08:52 +01:00
the-real-herowl
1a98c9ad2e One firework entity to rule them all 2024-12-29 08:08:52 +01:00
the-real-herowl
9ef0738a2e Dispensers work with fireworks 2024-12-29 08:08:52 +01:00
the-real-herowl
93a6ce6824 Renamed mcl_fireworks to vl_fireworks 2024-12-29 08:08:52 +01:00
the-real-herowl
3291786c1f Moved particle explosion to mcl_fireworks API
- crossbow rockets use the API
- fireworks use it obviously
- fireworks fly a bit faster too
2024-12-29 08:08:52 +01:00
the-real-herowl
6066e0dc46 Change firework explosion code 2024-12-29 08:08:52 +01:00
the-real-herowl
57f743a0c5 Adjusted firework entity size 2024-12-29 08:08:52 +01:00
teknomunk
50e54a375a Add pitch_offset to correct rocket orientation 2024-12-29 08:08:52 +01:00
the-real-herowl
00ef72c646 Graphical changes and preparations
- added mesh
- added adjusted texture
- marked lines in need of attention
2024-12-29 08:08:52 +01:00
teknomunk
326ad65158 Correct damage_groups return (ObjectRef:get_velocity() returns a vector not the required number) 2024-12-29 08:08:52 +01:00
the-real-herowl
902393926f Initial firework projectile 2024-12-29 08:08:52 +01:00
the-real-herowl
43539e1392 Make sure self.rotate is not nil before use (#4759)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4759
Co-authored-by: the-real-herowl <wiktor_t-i@proton.me>
Co-committed-by: the-real-herowl <wiktor_t-i@proton.me>
2024-12-29 08:05:52 +01:00
Mikita Wiśniewski
a93690c6fb Prevent crashes when dispensers/droppers operate on/with unknowns (#4764)
Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4764
Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land>
Co-authored-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-committed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
2024-12-29 08:04:59 +01:00
kno10
20f01a8ef7 paramtype light fixes from MCLA (#4763)
`paramtype` , not `paramtype1`

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4763
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 01:43:02 +01:00
kno10
f1181d956a Store mapgen version (#4762)
Store the version used to initialize the map in the map_env.txt file.

- if a version is stored in the map_env.txt file, it is used.
- if the map is new, the current game version is used.
- if the map is old, 0.87 is assumed for compatibility.

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4762
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 00:00:46 +01:00
kno10
0faedea137 Make trees, funghi not ground content, they get damaged by cavegen (#4757)
Prevents trees and funghi from being damaged by cavegen across map chunk boundaries.

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4757
Reviewed-by: Mikita Wiśniewski <rudzik8@protonmail.com>
Co-authored-by: kno10 <erich.schubert@gmail.com>
Co-committed-by: kno10 <erich.schubert@gmail.com>
2024-12-27 12:23:31 +01:00
kno10
631162e24c Switch from deg to rad. 2024-12-27 10:48:00 +07:00
kno10
dd165ec0e9 Update to set_bone_override 2024-12-27 10:48:00 +07:00
the-real-herowl
1c36a4e07c Fixed potion appearance in creative menu (search) (#4760)
This fixes potion appearance in creative menu, in the search tab. Proper potions appear there now.

Reviewed-on: https://git.minetest.land/VoxeLibre/VoxeLibre/pulls/4760
Co-authored-by: the-real-herowl <wiktor_t-i@proton.me>
Co-committed-by: the-real-herowl <wiktor_t-i@proton.me>
2024-12-27 01:13:38 +01:00
teknomunk
6ff0bb5614 Fix snowmen throwing snowballs and fix mcl_throwing when player throws things 2024-12-26 12:31:05 -06:00
the-real-herowl
2860832890 Allow changing maximum projectile time live 2024-12-26 03:00:38 +01:00
the-real-herowl
67f45bd6fb Fix potion registering not working with other mods 2024-12-25 23:25:19 +01:00
teknomunk
ddba0408e1 Correct behavior of projectiles sticking in players forcing the projectile to survive 2024-12-25 11:52:24 +01:00
teknomunk
7de503770f Address review concerns 2024-12-25 11:52:24 +01:00
teknomunk
2732976404 Move fireball redirection service award check to ghast from fireball 2024-12-25 11:52:24 +01:00
teknomunk
5c1881753b Change object alive check so that projectiles are still removed when the object dies 2024-12-25 11:52:24 +01:00
teknomunk
60e3c139cc Change mcl_mobs to use mcl_util.remove_entity() when killing mobs, add guard in vl_projectile against removed mobs 2024-12-25 11:52:24 +01:00
teknomunk
b8d2f67dfd Update api.md with rotational offset fields 2024-12-25 11:52:24 +01:00
teknomunk
0d82c8f725 Replace magic numbers with named constants, add missing 'local' 2024-12-25 11:52:24 +01:00
teknomunk
bb934d09ee Break long lines, add space between functions in vl_projectile/init.lua 2024-12-25 11:52:24 +01:00
teknomunk
bc321ccae4 Add _vl_projectile.can_punch() to mob API and move hard-coded entity behavior from arrow to rover code 2024-12-25 11:52:24 +01:00
teknomunk
a2167e7dfc Change to use nil radius in within_limits(pos,radius) check 2024-12-25 11:52:24 +01:00
teknomunk
88cd54a03b Add reference to Projectile API documentatino from mob API documentation 2024-12-25 11:52:24 +01:00
teknomunk
5db55dde3c Update { ... } to {...} 2024-12-25 11:52:24 +01:00
teknomunk
0d8f7515c6 Update minetest->Luanti in affected documentation, update minetest. -> core. in affected code, factor out common subexpressions in mods/ITEMS/vl_projectile/init.lua 2024-12-25 11:52:24 +01:00
teknomunk
7c8da2eba7 Rework self.timer and _owner collision conditions 2024-12-25 11:52:24 +01:00
teknomunk
6566304b43 Fix bug in solid node collision code (not updating _last_velocity, making delta_v larger if length was small) 2024-12-25 11:52:24 +01:00
teknomunk
5f0244ebb1 Use creative arrow collection behavior from master (except they make pickup noises in creative), make all creative arrows infinity 2024-12-25 11:52:24 +01:00
teknomunk
537f49d57e Rearrange conditions to minimize executed code 2024-12-25 11:52:24 +01:00
teknomunk
51ebb26abe Stop infinite loop of arrows stuck in yourself punching you 2024-12-25 11:52:24 +01:00
teknomunk
73c66dc888 Sound fix, preserve _itemstring as well 2024-12-25 11:52:24 +01:00
teknomunk
1e165155d8 Add _arrow_item to list of perserved fields 2024-12-25 11:52:24 +01:00
teknomunk
f426d96ef5 Make arrows (and all their derivatives) preserve collectable and entity properties across world unload/load 2024-12-25 11:52:24 +01:00
teknomunk
d42797d48d Make stuck arrows stop processing all other behaviors 2024-12-25 11:52:24 +01:00
teknomunk
f1a0c04f52 Make it possible to pick up arrows in creative mode 2024-12-25 11:52:24 +01:00
teknomunk
17f063c4e5 Fix tipped arrow behavior, remove debug code 2024-12-25 11:52:24 +01:00