+ Particles when a chest gets refilled
+ Localization for the barrier descriptionmaster
parent
5be31f6892
commit
ebcc17db37
|
@ -1,4 +1,5 @@
|
||||||
local function fill_chests() end
|
local function fill_chests() end
|
||||||
|
local function generate_particles() end
|
||||||
|
|
||||||
|
|
||||||
function skywars.place_chests(arena)
|
function skywars.place_chests(arena)
|
||||||
|
@ -34,5 +35,27 @@ function fill_chests(arena)
|
||||||
for i=1, #treasures do
|
for i=1, #treasures do
|
||||||
inv:set_stack("main", i, treasures[i])
|
inv:set_stack("main", i, treasures[i])
|
||||||
end
|
end
|
||||||
|
|
||||||
|
generate_particles(chest.pos)
|
||||||
end
|
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
|
end
|
|
@ -20,7 +20,7 @@ end
|
||||||
|
|
||||||
|
|
||||||
minetest.register_node("skywars:barrier", {
|
minetest.register_node("skywars:barrier", {
|
||||||
description = "Unbreakable transparent node",
|
description = skywars.T("Unbreakable without skywars_admin priv transparent node"),
|
||||||
drawtype = "airlike",
|
drawtype = "airlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
sunlight_propagates = true,
|
sunlight_propagates = true,
|
||||||
|
|
|
@ -16,6 +16,11 @@ Select a kit using the item in your inventory=Seleziona un kit usando l'oggetto
|
||||||
Kit Selector=Selettore Kit
|
Kit Selector=Selettore Kit
|
||||||
|
|
||||||
|
|
||||||
|
# Nodes
|
||||||
|
|
||||||
|
Unbreakable without skywars_admin priv transparent node=Nodo trasparente ed indistruttibile senza il permesso skywars_admin
|
||||||
|
|
||||||
|
|
||||||
# Arena configuration
|
# Arena configuration
|
||||||
|
|
||||||
Count has to be greater than 0!=La quantità deve essere maggiore di 0
|
Count has to be greater than 0!=La quantità deve essere maggiore di 0
|
||||||
|
|
|
@ -16,6 +16,11 @@ Select a kit using the item in your inventory=
|
||||||
Kit Selector=
|
Kit Selector=
|
||||||
|
|
||||||
|
|
||||||
|
# Nodes
|
||||||
|
|
||||||
|
Unbreakable without skywars_admin priv transparent node=
|
||||||
|
|
||||||
|
|
||||||
# Arena configuration
|
# Arena configuration
|
||||||
|
|
||||||
Count has to be greater than 0!=
|
Count has to be greater than 0!=
|
||||||
|
|
Binary file not shown.
After Width: | Height: | Size: 160 B |
Loading…
Reference in New Issue