aboutsummaryrefslogtreecommitdiff
path: root/builtin/game/item_entity.lua
AgeCommit message (Collapse)Author
2018-07-17Builtin: Replace deprecated function calls (#7561)SmallJoker
2018-02-13Item entity: Delete in 'ignore' nodesparamat
2018-02-05Item entity: Prevent motion in ignore nodesparamat
2017-11-06Item entities: Enable item collision detection for sudden movementDTA7
2017-09-11Fix dropped item look (#6370)you
* Abort set_item when it does nothing * Do not adjust dropped item size linearly Instead use cube root because the item count is proportional to the volume, not to the length. * Make the item rotate slower when it's bigger Bigger items chafe more on the ground, so they can't rotate as fast as small ones * Fix items flying in air
2017-08-24Builtin item: Tidy up (#4370)SmallJoker
New code structure Use setting movement_gravity Reset age on merge Set merge radius to 1.0m
2017-08-13Add slippery group for nodes (players/items slide)Wuzzy
2017-05-06Use a settings object for the main settingsShadowNinja
This unifies the settings APIs. This also unifies the sync and async registration APIs, since the async registration API did not support adding non-functions to the API table.
2017-04-08Hardware coloring for itemstacksDániel Juhász
Adds the possibility to colorize item stacks based on their metadata. In the item/node definition you can specify palette (an image file) and color (fallback color if the item has no palette or metadata). Then you can add palette_index to the metadata. Dropped itemstacks with different colors do not merge.
2016-05-22Item entities: Don't show description as infotextparamat
Partially reverts #3547 Infotext remains optional for objects, empty by default
2016-01-18Show infotext with description for item entitiesRealBadAngel
2015-11-12Add the player name to dropped itemsRobert Zenz
The player name is now added in the field "dropped_by" on the created entity.
2015-10-25Check if hitter has inventory when punching itemBlockMen
Fixes #3280
2015-09-29Some map border related fixesest31
1. Check for entity addition success in spawn_item implementation 2. Check for success in item_drop callback, so that the player doesn't lose the item if they are outside bounds and try to drop it. 3. When existing player joins game, check that their position is inside map bounds. If not, set their position to the return value of findSpawnPos(). 4. Make findSpawnPos() respect the border 2 fixes a lua crash if a player drops an item outside map bounds. 3 fixes an assertion crash if a player leaves when being outside map bounds, and then rejoins.
2015-05-15Don't crash if an item gets dropped into unloaded spacetenplus1
Items dropped into unloaded map space will crash game so here's a fix...
2015-05-15Item entity merging refactorest31
Don't ident too much, and add a comment.
2014-12-04Make dropped items larger and rotate fasterCalinou
Signed-off-by: Craig Robbins <kde.psych@gmail.com>
2014-11-19Add strict moduleShadowNinja
Also fix leaking globals found by it.
2014-05-23Item entity stacks merge on the ground.RealBadAngel
Add TTL to item entities.
2014-05-08Use "core" namespace internallyShadowNinja
2014-05-07Organize builtin into subdirectoriesShadowNinja