aboutsummaryrefslogtreecommitdiff
path: root/src/script/common/c_content.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add check_mod_configuration to main menurubenwardy2022-07-141-0/+32
|
* Animated particlespawners and more (#11545)Lexi Hale2022-07-131-1/+1
| | | | | Co-authored-by: Lars Mueller <appgurulars@gmx.de> Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: Dmitry Kostenko <codeforsmile@gmail.com>
* Sounds: Various little improvements (#12486)SmallJoker2022-07-091-2/+2
| | | | | Use SimpleSoundSpec where reasonable (OpenAL) Ensure the sound IDs do not underflow or get overwritten -> loop in u16 Proper use of an enum.
* Remove tile_images and special_materials obsolete code (#12455)Zughy2022-06-281-14/+0
| | | Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
* Re-order sound-related code (#12382)SmallJoker2022-06-201-8/+11
| | | | | | | | Dropped ServerSoundParams -> moved to ServerPlayingSound. This gets rid of the duplicated 'fade' and 'pitch' values on server-side where only one was used anyway. SimpleSoundSpec is the basic sound without positional information, hence 'loop' is included. Recursively added PROTOCOL_VERSION to most functions to reduce the versioning mess in the future. Per-type version numbers are kept for now as a safety rope in a special case.
* No damage effects on hp_max change (#11846)Lars Müller2022-06-111-1/+1
|
* Reduce size of ContentFeatures structuresfan52022-05-261-21/+28
| | | | | | On my system this is a reduction from 4664 to 3704 bytes. This is not for the sake of saving RAM but ensuring commonly used structures fit into caches better.
* hud_get: Return precision field for waypoints (#12215)Lars Müller2022-05-041-0/+6
|
* Refactor some Lua API functions in preparation for async envsfan52022-05-021-4/+4
|
* Fix the documentation of InvRef:get_lists() and clean up code (#12150)DS2022-03-291-9/+14
|
* Fix types of get_mapgen_setting_noiseparams (#12025)Lars Müller2022-02-041-13/+8
|
* Split liquid_viscosity to liquid_viscosity and move_resistance (#10810)Wuzzy2021-10-011-0/+22
|
* Remove redundant on_dieplayer callssavilli2021-08-281-2/+0
|
* HUD: Reject and warn on invalid stat types (#11548)SmallJoker2021-08-211-8/+11
| | | | This comes into play on older servers which do not know the "stat" type. Warnings are only logged once to avoid spam within globalstep callbacks
* Add bold, italic and monospace font styling for HUD text elements (#11478)sfan52021-07-271-0/+9
| | | Co-authored-by: Elias Fleckenstein <eliasfleckenstein@web.de>
* Inventory: Make addList() consistent (#11382)SmallJoker2021-06-301-2/+2
| | | | Fixes list clearing for inv:set_list() using same size, since 2db6b07. addList() now clears the list in all cases. Use setSize() to resize without clearing.
* Inventory: show error on invalid list names (#11368)SmallJoker2021-06-201-12/+14
|
* Degrotate support for mesh nodes (#7840)Vitaliy2021-03-301-1/+2
|
* Use place_param2 client-side for item appearance & prediction (#11024)sfan52021-03-091-0/+2
|
* Add nametag background setting and object property (#10937)rubenwardy2021-02-171-0/+18
|
* Fix short_description fallback order (#10943)rubenwardy2021-02-171-2/+4
|
* Rework use_texture_alpha to provide three opaque/clip/blend modessfan52021-01-291-9/+23
| | | | | The change that turns nodeboxes and meshes opaque when possible is kept, as is the compatibility code that warns modders to adjust their nodedefs.
* Drop never documented 'alpha' property from nodedefsfan52021-01-291-1/+4
| | | | | Includes minimal support code for practical reasons. We'll need it for a slightly different purpose next commit.
* Removed some obsolete code (#10562)Zughy2021-01-211-17/+0
| | | Co-authored-by: Zughy <4279489-marco_a@users.noreply.gitlab.com>
* Decouple entity minimap markers from nametags replacing with show_on_minimap ↵sfan52020-10-191-0/+3
| | | | property (#10443)
* Pass ContentFeatures as reference to read_content_features (#10464)JosiahWI2020-10-131-4/+1
|
* Add a short_description to be used by mods (#8980)DS2020-10-091-0/+3
|
* Fix precision not working in hud_change (#10186)Lars Müller2020-08-121-1/+4
|
* Make shading of CAOs optional (#10033)Danila Shutov2020-06-161-0/+3
|
* CSM: Fix crashing minetest.get_item_def()sfan52020-05-201-1/+1
| | | | fixes #9884
* Rework functionality of leveled nodes (#9852)Wuzzy2020-05-191-0/+4
| | | | Co-authored-by: sfan5 <sfan5@live.de> Co-authored-by: SmallJoker <SmallJoker@users.noreply.github.com>
* Damage texture modifier (#9833)Lars Müller2020-05-111-0/+4
| | | Adds a new object property "damage_texture_modifier"
* Add support for statbar “off state” icons (#9462)Wuzzy2020-05-111-0/+8
| | | | | | | This adds support for optional “off state” icons for statbars. “off state icons” can be used to denote the lack of something, like missing hearts or bubbles. Add "off state" textures to the builtin statbars. Co-authored-by: SmallJoker <mk939@ymail.com>
* Expose collided objects in moveresultsfan52020-05-061-0/+3
| | | | closes #9787
* Rename moveresult speed to velocitySmallJoker2020-05-051-2/+2
|
* Expose collision information to LuaEntity on_stepsfan52020-04-271-0/+54
|
* Script: Enforce type checks if not nil (#9748)SmallJoker2020-04-271-32/+44
| | | | * Script: Enforce type checks if not nil
* Fix parsing JSON with large integers (#9674)sfan52020-04-151-3/+3
|
* scriptapi: Some small optimizations to value pushing (#9669)sfan52020-04-141-17/+17
|
* Improve waypoints and add image variant (#9480)Lars Müller2020-04-111-1/+5
|
* Move PlayerSAO to dedicated filesLoic Blot2020-04-111-2/+1
|
* Move serveractiveobject & unitsaoLoic Blot2020-04-111-1/+1
| | | | | Move serverobject.{cpp,h} to server/serveractiveobject.{cpp,h} Move UnitSAO class to dedicated files
* Improve core.sound_play with ephemeral sounds and player exclusionsfan52020-02-011-0/+1
|
* Remove unused weight property from objects (#9320)Wuzzy2020-01-221-4/+0
|
* Add z-index management to HUDPierre-Yves Rollo2019-12-061-5/+14
|
* Change some usages of "deprecated" to "obsolete" (#9062)random-geek2019-10-291-8/+8
| | | | "Deprecated" means that something is still in use, but is unsupported and needs to be removed. "Obsolete" means it is already out of use.
* Punchwear (improved) (#8959)sfan52019-09-221-6/+4
|
* Do not add group values of zero to group lists. (#8751)Beha2019-08-071-3/+5
| | | | | | | | | | This fixes an issue where when the engine looked up groups (for example, in ABM node names), NodeDefManager's m_group_to_items would contain nodes with a group value of zero, resulting in nodes with flammable = 0 being burned by a fire mod with a group:flammable checking ABM. It brings consistency to the behaviour described in the api documentation, where zero and nil groups should be the same.
* Move the clamping of hp/breath when their maximums change to ↵Beha2019-07-301-3/+18
| | | | | read_object_properties(). (#8689) This prevents set_properties() calls that have nothing to do with hp_max or breath_max overriding the saved hp before another mod has the chance to set a player's intended hp_max (such as in on_joinplayer).
* Abort when trying to set a not registered node (#7011)HybridDog2019-03-071-2/+6
| | | | | | I removed the MapNode constructor which takes a nodename and gives the node's id or CONTENT_IGNORE The code which used this constructor (two places) now handles the situation of not registered nodes correctly: * minetest.set_node and similar functions make minetest crash when a not registered node is passed * reverting a node with rollback aborts if the node is not registered