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:
@@ -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}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user