diff --git a/_chest_handler/chest_setter.lua b/_chest_handler/chest_setter.lua index d91d50d..aafac19 100644 --- a/_chest_handler/chest_setter.lua +++ b/_chest_handler/chest_setter.lua @@ -1,4 +1,5 @@ local function fill_chests() end +local function generate_particles() end function skywars.place_chests(arena) @@ -34,5 +35,27 @@ function fill_chests(arena) for i=1, #treasures do inv:set_stack("main", i, treasures[i]) end + + generate_particles(chest.pos) end +end + + + +function generate_particles(pos) + minetest.add_particlespawner({ + amount = 7, + time = 0.25, + minpos = vector.add({x=0, y=-0.3, z=0}, pos), + maxpos = vector.add({x=0, y=0, z=0}, pos), + minvel = {x=-2, y=0.5, z=-2}, + maxvel = {x=2, y=1, z=2}, + minacc = {x=-2, y=0.5, z=-2}, + maxacc = {x=2, y=1, z=2}, + minexptime = 1, + maxexptime = 1.5, + minsize = 1.5, + maxsize = 3, + texture = "particle_chest_filled.png", + }) end \ No newline at end of file diff --git a/_map_handler/map_utils.lua b/_map_handler/map_utils.lua index 520a275..4ff8b2e 100644 --- a/_map_handler/map_utils.lua +++ b/_map_handler/map_utils.lua @@ -20,7 +20,7 @@ end minetest.register_node("skywars:barrier", { - description = "Unbreakable transparent node", + description = skywars.T("Unbreakable without skywars_admin priv transparent node"), drawtype = "airlike", paramtype = "light", sunlight_propagates = true, diff --git a/locale/skywars.it.tr b/locale/skywars.it.tr index 9db2318..e7968a4 100644 --- a/locale/skywars.it.tr +++ b/locale/skywars.it.tr @@ -16,6 +16,11 @@ Select a kit using the item in your inventory=Seleziona un kit usando l'oggetto Kit Selector=Selettore Kit +# Nodes + +Unbreakable without skywars_admin priv transparent node=Nodo trasparente ed indistruttibile senza il permesso skywars_admin + + # Arena configuration Count has to be greater than 0!=La quantità deve essere maggiore di 0 diff --git a/locale/template.txt b/locale/template.txt index 53952c7..77e3d2b 100644 --- a/locale/template.txt +++ b/locale/template.txt @@ -16,6 +16,11 @@ Select a kit using the item in your inventory= Kit Selector= +# Nodes + +Unbreakable without skywars_admin priv transparent node= + + # Arena configuration Count has to be greater than 0!= diff --git a/textures/particle_chest_filled.png b/textures/particle_chest_filled.png new file mode 100644 index 0000000..2c59a29 Binary files /dev/null and b/textures/particle_chest_filled.png differ