Commit Graph

46 Commits (f3be63d8746a483072c9153e891fdf748ef829a8)

Author SHA1 Message Date
Milan f3be63d874 merge upstream 2022-08-25 17:51:59 +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
Milan Ihl 029ab5aa0c resolve mergeconflicts 2020-08-17 22:07:15 +02: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
Milan 2e451bd11e merge upstream 2019-02-07 13:17:18 +01: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
Milan* 8a3f06a18f fix mergeconflicts 2017-07-30 12:15:29 +02:00
paramat eec1c5a03b Settings: Use new settings object 2017-05-24 07:18:26 +01:00
Milan* 9052d3ae14 fix mergeconflicts 2017-05-22 09:30:34 +02:00
zaoqi 077316b4cd Use creative.is_enabled_for for creative mode if possible (#1558) 2017-03-29 21:02:26 +02:00
Milan* 960a9de9d8 fix mergeconflicts 2016-12-15 18:03:31 +00: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
tchncs 930d201f39 bones: fix mergeconflict 2016-09-01 14:22:49 +02:00
tchncs d2dcd64203 merge github.com/minetest/minetest_game 2016-09-01 14:07:55 +02: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 0c3d4135e1 merge upstream commit: Remove unused and clean up missused variable-value assignments. 2016-07-16 14:17:55 +02: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
tchncs f4fc4294b7 fix mergeconflicts 2016-05-02 10:16:25 +02: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
tchncs 0b4aa7b59c merge master of minetest/minetest_game 2016-03-29 16:08:55 +02:00
Rui 8fdcfea9f9 Allow for shift+clicking inventory from bones 2016-03-21 06:17:33 +00:00
tchncs 02c87c3b01 Merge https://github.com/minetest/minetest_game 2016-03-18 18:51:32 +01: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
tchncs e14809616d test 2016-03-14 10:00:08 +01: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
tchncs f8675b068f Merge https://github.com/minetest/minetest_game 2015-12-26 21:44:42 +01:00
tchncs 5112ff6bbc add note for bones position 2015-12-26 21:41:52 +01: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
SmallJoker a32751800c Add furnace protection, eat some lines of codes
This adds protection for furnaces (when the area is protected, so it the
furnace).
Also made the codes a bit shorter..
2014-07-05 16:01:28 +02:00
SmallJoker d47201f813 Add punch to pickup, drop instead of delete
These changes allow players to punch up old bones or their own.
If there is no area for bones, drop the items instead of delete.
Notify the player where he died, so he can find them again.
2014-07-05 16:01:19 +02:00
Zheyu Shen 253af00743 Don't create bones if the player's inventory is empty 2014-06-25 15:46:45 -04:00
PilzAdam 179f4c3f91 Use louder footstep sound as dug_node 2013-06-13 14:36:11 +00:00
Mitori Itoshiki c3c5f8a228 New sounds 2013-06-12 22:38:40 +00:00
PilzAdam 31a74ede18 Replace minetest.env: with minetest. 2013-05-25 00:40:03 +02:00
PilzAdam a65f5b1564 Add bones mod 2013-05-18 16:06:57 +02:00