aboutsummaryrefslogtreecommitdiff
path: root/src/script/common
AgeCommit message (Collapse)Author
2018-03-29Optional alpha channel support for entitiesstujones11
2018-03-09Getv3intfield: Fix logic of return boolparamat
2018-03-03c_converter: Function template for numeric fields, add v3s16 default (#7090)SmallJoker
2018-02-10Node definition manager refactor (#7016)Dániel Juhász
* Rename IWritableNodeDefManager to NodeDefManager * Make INodeDefManager functions const * Use "const *NodeDefManager" instead of "*INodeDefManager" * Remove unused INodeDefManager class * Merge NodeDefManager and CNodeDefManager * Document NodeDefManager
2018-02-04Make hud_get return aligment, offset and size. (#7006)lisacvuk
* Make hud_get return aligment and offset. * Return size aswell.
2018-01-20[CSM] Add basic HUD manipulation. (#6067)red-001
* [CSM] Add basic HUD manipulation. Workaround for on_connect not working right now.
2018-01-03Connected Nodeboxes: Add `disconnected` boxesThomas--S
The `disconnected_*` boxes are the opposites of the `connect_*` ones, i.e. when a node has no suitable neighbours on the respective side, the according disconnected box is drawn. * disconnected_top * disconnected_bottom * disconnected_front * disconnected_left * disconnected_back * disconnected_right * disconnected (when there is *no* neighbour) * disconnected_sides (when there are *no* neighbours to the sides)
2017-12-26Fix rounding error in g/set_node caused by truncation to floatrubenwardy
2017-12-04Zoom: Set zoom FOV per-player using a player object propertyparamat
Remove player object property 'can zoom'. Add player object property 'zoom fov'. Remove clientside setting for 'zoom fov'. Object property default is 15 degrees in creative mode, zoom disabled in survival mode. Needed due to zoom now loading and/or generating distant world according to zoom FOV. Update object properties serialisation version to 3.
2017-11-27Hint at problematic code when logging deprecated callssfan5
2017-11-08Move files to subdirectories (#6599)Vitaliy
* Move files around
2017-11-06Player eye height: Make this a settable player object propertyparamat
2017-10-23Improvements/fixes for noise parameter input in advanced settingsMuhammad Rifqi Priyo Susanto
Formspec input for each individual noise parameter and flag. Allow noise flags to be set in advanced settings, previously only settable in minetest.conf. Standardise 'group format' for noise parameters set in minetest.conf, as only these support noise flags. However the older 'single line' format is still accepted to support existing minetest.conf files. Therefore auto-generate minetest.conf.example with noise parameters in 'group format'. Setting 'type' in settingtypes.txt is now either 'noise_params_2D' or 'noise_params_3D', the dimension number is displayed in the advanced settings edit page.
2017-10-15Real global textures (#6105)Vitaliy
* Real global textures * Add world-aligned textures * Update minimal to support world-aligned tiles * Update minimal
2017-09-28Add static_save property to luaentites to not save them statically. (#5112)orwell96
* Add no_static_save property to luaentites to not save them statically. This allows for temporary objects that would get deleted anyway as soon as they are loaded again without the static saving overhead. * Use positive meaning for static_save object property * Invert meaning also for the LUA parameter Note: getboolfield() does not change &result when field does not exist, so it defaults to the default value in the header file, which is 'true'. * Extend push_object_properties()
2017-09-15Customizeable max breath for players (#6411)SmallJoker
* Customizeable maximal breath for players
2017-09-14Object properties: Add 'glow', disables light's effect if negativeRob Blanckaert
The 'glow' value is added to the ambient light value. Negative 'glow' disables light's effect on object colour, for faking self-lighting, UI-style entities, or programmatic colouring in mods.
2017-09-11Implement client node dig predictionAuke Kok
Dig prediction allows clients to remove dug nodes without waiting for server acknowledgement. This patch allows mods to override dig prediction, it can either be turned off or a different "prediction node" can be selected.
2017-09-10Object properties: Fix loss of custom selectionboxSmallJoker
Only adjust it to the collisionbox value when the collisionbox was really set.
2017-08-30Zoom: Move enabling zoom to a new player object propertyparamat
Default enabled for no change in default behaviour. Remove 'zoom' privilege.
2017-08-25Overlays for wield and inventory images (#6107)Dániel Juhász
* Overlays for wield and inventory images
2017-08-24Make entity selection and collision boxes independently settable (#6218)stujones11
* Make entity selection and collision boxes independently settable
2017-08-23Respect object property hp_max field for players (#6287)SmallJoker
* Respect object property hp_max field for players This allows modders to configure the maximal HP per player * Statbars: Downscale bar to full 20 HP when exceeding this value Add default max HP for players and breath constants to builtin Document the constants * Rename PLAYER_MAX_HP -> PLAYER_MAX_HP_DEFAULT
2017-08-20Modernize source code: last part (#6285)Loïc Blot
* Modernize source code: last par * Use empty when needed * Use emplace_back instead of push_back when needed * For range-based loops * Initializers fixes * constructors, destructors default * c++ C stl includes
2017-08-17C++ modernize: Pragma once (#6264)Loïc Blot
* Migrate cpp headers to pragma once
2017-08-04Sort box corners correctlyThomas--S
2017-07-11Add 'plantlike_rooted' drawtypenumber Zero
Useful for underwater plants. Node consists of a base cube plus a plantlike extension that can pass through liquid nodes above without creating air bubbles or interfering with liquid flow. Uses paramtype2 'leveled', param2 defines height of plantlike extension.
2017-06-30Create a filesystem abstraction layer for CSM and only allow accessing files ↵red-001
that are scanned into it. (#5965) * Load client-side mods into memory before executing them. This removes the remaining filesystem access that client-sided mods had and it will hopefully make then more secure. * Lua Virtual filesystem: don't load the files into memory just scan the filenames into memory. * Fix the issues with backtrace * fix most of the issues * fix code style. * add a comment
2017-06-11Sound: Add pitch option (#5960)Rui
* Sound: Add pitch option
2017-06-04C++11 patchset 2: remove util/cpp11.h and util/cpp11_container.h (#5821)Loïc Blot
2017-05-21[CSM] Add function to get the definition of items (#5732)bigfoot547
Add node def and item def documentation. Please be ready for merge!
2017-05-20Fix CSM crash (#5779)red-001
Caused by dc5bc6c and them made worse by 5ebf8f9
2017-05-03Sound API: Add fading soundsBrandon
2017-04-29[CSM] Add event on_place_node API lua (#5548)Vincent Glize
* [CSM] Add event on_place_node API lua
2017-04-21Soft node overlay (#5186)Dániel Juhász
This commit adds node overlays, which are tiles that are drawn on top of other tiles.
2017-04-19Fix various copy instead of const ref reported by cppcheck (#5615)Loïc Blot
* Also remove InventoryList::peekItem unused function * Fix some post increment to preincrement reported by cppcheck
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.
2017-03-13Add `get_wielded_item`red-001
2017-02-22Fix wrong meta key in item meta on ItemStack constructionrubenwardy
2017-02-07Fix incompatibility of ItemStack.to_table() introduced by stack metarubenwardy
2017-02-04Add ItemStack key-value meta storagerubenwardy
2017-01-23Add hardware node coloring. Includes:Dániel Juhász
- Increase ContentFeatures serialization version - Color property and palettes for nodes - paramtype2 = "color", "colored facedir" or "colored wallmounted"
2017-01-18Add particle animation, glowsfan5
This is implemented by reusing and extending the TileAnimation code for the methods used by particles.
2017-01-15Added lua tracebacks to some errors where you have been blind to what… (#5043)sapier
* Added lua tracebacks to some errors where you have been blind to what actually went wrong
2017-01-02Add 2D sheet animation for nodessfan5
2017-01-02Move TileAnimation code to seperate filesfan5
2016-11-28Limit light_source in the engine (#4814)juhdanad
Since light_source>15 causes crash, it must be limited.
2016-11-14Revert "Adding particle blend, glow and animation (#4705)"sfan5
This reverts commit 93e3555eae2deaeca69ee252cfa9cc9c3e0e49ef.
2016-11-15Adding particle blend, glow and animation (#4705)Foghrye4
2016-10-25Adding LuaError on attempt to assign vectors with values out of rangeFoghrye4