mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Allow spawning particles from the server, from lua
Spawn single particles or make use of ParticleSpawner for many randomly spawned particles. Accessible in Lua using minetest.spawn_particle and minetest.add_particlespawner. Increase Protocol Version to 17. Conflicts: src/clientserver.h
This commit is contained in:
parent
ab57fdac44
commit
e1ff5b1361
13 changed files with 1060 additions and 56 deletions
|
@ -44,6 +44,7 @@ extern "C" {
|
|||
#include "scriptapi_item.h"
|
||||
#include "scriptapi_content.h"
|
||||
#include "scriptapi_craft.h"
|
||||
#include "scriptapi_particles.h"
|
||||
|
||||
/*****************************************************************************/
|
||||
/* Mod related */
|
||||
|
@ -1089,6 +1090,9 @@ static const struct luaL_Reg minetest_f [] = {
|
|||
{"get_all_craft_recipes", l_get_all_craft_recipes},
|
||||
{"rollback_get_last_node_actor", l_rollback_get_last_node_actor},
|
||||
{"rollback_revert_actions_by", l_rollback_revert_actions_by},
|
||||
{"add_particle", l_add_particle},
|
||||
{"add_particlespawner", l_add_particlespawner},
|
||||
{"delete_particlespawner", l_delete_particlespawner},
|
||||
{NULL, NULL}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue