Imre Péntek
c2cfa87cf2
to make bones_mode = keep work
2024-03-31 18:23:19 +02:00
Imre Péntek
5cc2b46aa4
coding style fix
2024-03-31 17:22:32 +02:00
Imre Péntek
cc6b859ce0
coding style fix
2024-03-31 14:13:06 +02:00
Imre Péntek
cd8cb78856
coding style fix
2024-03-31 14:03:34 +02:00
Imre Péntek
e62cfaafd4
whitespace fix
2024-03-31 03:03:14 +02:00
Imre Péntek
48099ebcb5
luacheck fix
2024-03-30 21:15:03 +01:00
Imre Péntek
58797832e3
bones inventory reordering
2024-03-30 21:13:41 +01:00
Imre Péntek
dfd0805e84
whitespace fix
2024-03-30 19:51:51 +01:00
Imre Péntek
e7d483bef9
scroll fix
2024-03-30 19:20:26 +01:00
Imre Péntek
704f11d9bf
testing/debug code to make the bones go full, needs to be reverted
2024-03-30 18:12:55 +01:00
Imre Péntek
9d4142772c
debug code removed
2024-03-28 16:49:45 +01:00
Imre Péntek
7c119feb51
scrollbar vs bones formspec
2024-03-28 16:49:36 +01:00
Imre Péntek
e27ad580d6
as per https://github.com/minetest/minetest_game/pull/3030#discussion_r1538212559
2024-03-28 11:29:07 +01:00
Imre Péntek
25ff385294
fix for https://github.com/minetest/minetest_game/pull/3030#pullrequestreview-1912657094
2024-03-28 10:33:21 +01:00
Imre Péntek
da3c36ded8
NS routine as per code review
2024-03-28 10:33:21 +01:00
Imre Péntek
5b35ea553e
as per https://github.com/minetest/minetest_game/pull/3030#pullrequestreview-1899419816
2024-03-28 10:33:21 +01:00
Imre Péntek
b62713f0db
PR #3030 fix
2024-03-28 10:33:21 +01:00
Lars Mueller
738e0d7292
Refactor
2024-03-28 10:33:21 +01:00
Lars Müller
bd60bfb549
Fix table.insert
usage
2024-03-28 10:33:21 +01:00
Lars Müller
224ae80626
Use Minetest's table.insert_all
2024-03-28 10:33:21 +01:00
Imre Péntek
4b2228066f
fixes as per code review completed (4)
2024-03-28 10:33:21 +01:00
Imre Péntek
5141c96c01
fixes as per code review completed (3)
2024-03-28 10:33:21 +01:00
Imre Péntek
eeec7d6be0
fixes as per code review completed (2)
2024-03-28 10:33:21 +01:00
Imre Péntek
3dad8a530d
fixes as per code review completed
2024-03-28 10:33:21 +01:00
Imre Péntek
b0545dc5c2
bones: bones are now holding 150 item slots and register_transfer_inventory_to_bones_on_player_death callback
2024-03-28 10:33:21 +01: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