Commit graph

57 commits

Author SHA1 Message Date
Imre Péntek
67d0cd92f8 coding style fix 2025-06-07 14:10:29 +02:00
Imre Péntek
4250ba1ed2 whitespace fix 2025-06-07 14:06:45 +02:00
Imre Péntek
a077f7f748 luacheck fix 2025-06-07 14:06:45 +02:00
Imre Péntek
5d577a596e bones inventory reordering 2025-06-07 14:06:45 +02:00
Imre Péntek
6e8f9aa8b8 whitespace fix 2025-06-07 14:06:45 +02:00
Imre Péntek
99025ebab5 scroll fix 2025-06-07 14:06:45 +02:00
Imre Péntek
0b1465849f testing/debug code to make the bones go full, needs to be reverted 2025-06-07 14:06:45 +02:00
Imre Péntek
9fd61333a0 debug code removed 2025-06-07 14:06:45 +02:00
Imre Péntek
fa791eab1d scrollbar vs bones formspec 2025-06-07 14:06:41 +02:00
Imre Péntek
f970fc8537 as per https://github.com/minetest/minetest_game/pull/3030#discussion_r1538212559 2025-06-07 14:04:56 +02:00
Imre Péntek
21ad20d631 fix for https://github.com/minetest/minetest_game/pull/3030#pullrequestreview-1912657094 2025-06-07 14:04:56 +02:00
Imre Péntek
d20c1e2dcf NS routine as per code review 2025-06-07 14:04:56 +02:00
Imre Péntek
76dcf7256c as per https://github.com/minetest/minetest_game/pull/3030#pullrequestreview-1899419816 2025-06-07 14:02:42 +02:00
Imre Péntek
5208139538 PR #3030 fix 2025-06-07 14:00:16 +02:00
Lars Mueller
f963ab2a8e Refactor 2025-06-07 14:00:12 +02:00
Lars Müller
0b484fd5a6 Fix table.insert usage 2025-06-07 13:53:08 +02:00
Lars Müller
bfa75a2a83 Use Minetest's table.insert_all 2025-06-07 13:53:08 +02:00
Imre Péntek
93637aab70 fixes as per code review completed (4) 2025-06-07 13:53:08 +02:00
Imre Péntek
5c9ae2911c fixes as per code review completed (3) 2025-06-07 13:53:08 +02:00
Imre Péntek
54539fb05c fixes as per code review completed (2) 2025-06-07 13:53:08 +02:00
Imre Péntek
63f6abe52f fixes as per code review completed 2025-06-07 13:53:00 +02:00
Imre Péntek
7ce365f4e4 bones: bones are now holding 150 item slots and register_transfer_inventory_to_bones_on_player_death callback 2025-06-07 13:45:20 +02:00
Wuzzy
312a67b40c
Replace Minetest mentions with Luanti (#3169) 2024-12-04 18:01:28 +01:00
Gundul
4e402ec39f
Fix crash if bones punched by non-player (#3146) 2024-08-18 19:40:14 +02:00
OgelGames
110c23560e
Don't check protection of air when placing bones (#2964) 2023-07-06 10:17:35 +02:00
imre84
d86435d86c
Extend inventory action logging to include bones (#3040) 2023-07-05 23:14:02 +02:00
Maksim
e6aec880de
Use Minetest 5.3 'minetest.is_creative_enabled' API (#2795) 2020-12-13 18:59:19 +01:00
auouymous
7ae983b669
Don't replace protected liquids with bones (#2790) 2020-12-08 22:20:16 +01:00
sfan5
e4adb01fbf
Fix and improve translation strings (#2471) 2019-09-12 19:03:10 +02:00
Yves Quemener
bb9279ccb8 Add support for MT 5 game translation (rebasing ) (#2466)
rebased #2368
2019-09-10 19:09:51 +02:00
Paramat
8af8dc49a0
Remove uses of default.gui_bg/bg_img/slots
Keep their definitions, to not break mods, but move them to legacy.lua.
2019-01-03 01:57:13 +00:00
SmallJoker
255031fc91 Replace deprecated function calls 2018-07-01 20:44:03 +01:00
Jacob Gustafson
e376d57bd2 Add optional bones messages for player and log 2018-06-02 09:54:45 +02:00
Tim
283636bfdb Bones: Iterate player inventory lists dynamically (#1229)
Avoid hard-coded player inventory lists.
Expose `bones.player_inventory_lists` for mods to look up or change,
which player inventory lists are being dropped or placed into bones.
2018-02-20 19:15:03 +01:00
SmallJoker
3611af1dda Bones: Return bones when taking the last ItemStack 2017-10-02 11:01:01 +02:00
paramat
eec1c5a03b Settings: Use new settings object 2017-05-24 07:18:26 +01:00
zaoqi
077316b4cd Use creative.is_enabled_for for creative mode if possible (#1558) 2017-03-29 21:02:26 +02:00
tenplus1
0cbb516ae2 Bones: Search for nearby 'air' for fallback bones placement
When a player dies on ladders or rope then a space can not be found at or
above player, so this change looks around player for a space to place bones.
2016-09-10 05:19:15 +01:00
Tim
76211624ac Use minetest instead of core namespace, discourage via luacheck 2016-08-09 03:47:27 +01:00
paramat
4fba897a96 Bones: Improve bones textures
Add mouth, remove jaw shadow, shade eyesockets.
Darker shading for spine and rotate texture using ^[transform2
instead of inverting texture.
Use 'node sound gravel defaults' for sounds.
2016-08-01 01:20:27 +01:00
tenplus1
2df7ce20dd Bones: Ability to change bones mode. Tidy up code
Add 'bones_mode' setting to minetest.conf -> Modes: bones, drop, keep
Remove table 'bones'
Add minetest.conf.example description
Remove protection check from may_replace
2016-07-27 21:37:49 +01:00
Tim
4473627de0 Remove unused and clean up missused variable-value assignments.
* Unused variables
* Unused values (assigned to variables, but overwritten before use)
* Defining already defined variables instead of reassigning to them.
2016-07-15 21:58:49 +01:00
Auke Kok
54b87e955d TNT: Add on_blast to all nodes with an inventory
Adds a minor helper function that allows efficient retrieval of
several inventories from a node inventory. We use this helper to
quickly retrieve the items in chests, vessel shelves, book shelves
and furnaces, and return these with the nodes itself to the TNT caller.

The TNT caller then performs the entity physics, and we don't need
to do anything else.

We disable TNT doing anything with bones.

We expose a bug in the code that drops the items - metadata was lost
entirely. This patch corrects that by properly copying the metadata
and creating the drops list inclusive metadata.
2016-04-26 22:33:59 +01:00
Rui
8fdcfea9f9 Allow for shift+clicking inventory from bones 2016-03-21 06:17:33 +00:00
James Stevenson
d90a081722 Rename argument to priv check
Fixes crash when punching bones not owned by you, and may resolve https://github.com/minetest/minetest_game/issues/940
2016-03-18 02:35:38 +00:00
Auke Kok
2fb40be409 Add "protection_bypass" priv.
The access privilege allows players that have it to bypass protection
on locked doors/trapdoors, chests and bones.

The priv also allows bypassing any minetest.is_protected() check,
including digging nodes and placing them. It is meant for world
moderators to clean up and fix map issues.

Original patch by red-001. Split up and rebased/rewritten by sofar.

This patch requires https://github.com/minetest/minetest/pull/3800
2016-03-13 04:48:57 +00:00
MT-Modder
0410b5e0ca Allow non-players to dig bones. 2016-03-03 00:37:01 +00:00
LeMagnesium
93a2c40ebc Adding bones' drop feature Before, when you died, you got to punch you bones to get back your stuff, the bones block was not dropped. However, a lot of people wants to use them for decorations/building, and have to install a dedicated mod since 0.4.10-release. With this commit, a bones block containing an inventory is dropped/added to inventory (if enough room) when the bones block is removed. Then, when a player places a bones block by himself, he will dig it like any other basic node (eg. default:tree), not just punch it.
Thanks for reading.
2015-09-29 21:01:34 +01:00
Tim
75ea7e3160 Bones mod fixes
1. don't delete protected nodes, 2. time out in loaded chunks, 3. don't crash when dying in certain nodes (like default doors or sign_lib signs)
2015-02-12 22:10:15 +01:00
Craig Davison
07dcae7258 Add fancy inventory for bones 2015-01-17 16:05:19 +01:00