+ Particles when a chest gets refilled

+ Localization for the barrier description
master
Giov4 2020-12-27 01:14:59 +01:00
parent 5be31f6892
commit ebcc17db37
5 changed files with 34 additions and 1 deletions

View File

@ -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

View File

@ -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,

View File

@ -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

View File

@ -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!=

Binary file not shown.

After

Width:  |  Height:  |  Size: 160 B