mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 00:21:07 +01:00
Merge remote-tracking branch 'origin/master' into mineclone5
This commit is contained in:
commit
83b96a80ca
6 changed files with 13 additions and 0 deletions
BIN
mods/CORE/mcl_particles/textures/mcl_particles_sponge1.png
Normal file
BIN
mods/CORE/mcl_particles/textures/mcl_particles_sponge1.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
mods/CORE/mcl_particles/textures/mcl_particles_sponge2.png
Normal file
BIN
mods/CORE/mcl_particles/textures/mcl_particles_sponge2.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
mods/CORE/mcl_particles/textures/mcl_particles_sponge3.png
Normal file
BIN
mods/CORE/mcl_particles/textures/mcl_particles_sponge3.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
mods/CORE/mcl_particles/textures/mcl_particles_sponge4.png
Normal file
BIN
mods/CORE/mcl_particles/textures/mcl_particles_sponge4.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
mods/CORE/mcl_particles/textures/mcl_particles_sponge5.png
Normal file
BIN
mods/CORE/mcl_particles/textures/mcl_particles_sponge5.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
|
@ -114,6 +114,19 @@ function place_wet_sponge(itemstack, placer, pointed_thing)
|
||||||
|
|
||||||
if mcl_worlds.pos_to_dimension(pointed_thing.above) == "nether" then
|
if mcl_worlds.pos_to_dimension(pointed_thing.above) == "nether" then
|
||||||
minetest.item_place_node(ItemStack("mcl_sponges:sponge"), placer, pointed_thing)
|
minetest.item_place_node(ItemStack("mcl_sponges:sponge"), placer, pointed_thing)
|
||||||
|
local pos = pointed_thing.above
|
||||||
|
for n = 0, 25 do
|
||||||
|
minetest.add_particle({
|
||||||
|
pos = {x = pos.x + math.random(-1, 1)*math.random()/2, y = pos.y + 0.6, z = pos.z + math.random(-1, 1)*math.random()/2},
|
||||||
|
velocity = {x = 0, y = math.random(), z = 0},
|
||||||
|
acceleration = {x=0, y=0, z=0},
|
||||||
|
expirationtime = math.random(),
|
||||||
|
collisiondetection = false,
|
||||||
|
vertical = false,
|
||||||
|
size = math.random(2, 5),
|
||||||
|
texture = "mcl_particles_sponge"..math.random(1, 5)..".png",
|
||||||
|
})
|
||||||
|
end
|
||||||
if not minetest.is_creative_enabled(name) then
|
if not minetest.is_creative_enabled(name) then
|
||||||
itemstack:take_item()
|
itemstack:take_item()
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue