1
0
Fork 0

Proper model

This commit is contained in:
Lizzy Fleckenstein 2020-07-26 13:28:13 +02:00
parent 21c6815839
commit a31ed90a81
2 changed files with 3 additions and 3 deletions

View File

@ -28,12 +28,12 @@ local function crystal_explode(self, puncher)
if self._exploded then return end if self._exploded then return end
self._exploded = true self._exploded = true
local strength = puncher and explosion_strength or 1 local strength = puncher and explosion_strength or 1
mcl_explosions.explode(vector.add(self.object:get_pos(), {x = 0, y = 1.5, z = 0}), strength, {drop_chance = 1}, puncher) mcl_explosions.explode(vector.add(self.object:get_pos(), {x = 0, y = 1.5, z = 0}), strength, {drop_chance = 0}, puncher)
minetest.after(0, self.object.remove, self.object) minetest.after(0, self.object.remove, self.object)
end end
local function set_crystal_animation(self) local function set_crystal_animation(self)
self.object:set_animation({x = 0, y = 60}, 30) self.object:set_animation({x = 0, y = 120}, 25)
end end
local function spawn_crystal(pos) local function spawn_crystal(pos)
@ -66,7 +66,7 @@ minetest.register_entity("mcl_end:crystal", {
initial_properties = { initial_properties = {
physical = true, physical = true,
visual = "mesh", visual = "mesh",
visual_size = {x = 7.5, y = 7.5, z = 7.5}, visual_size = {x = 6, y = 6},
collisionbox = {-1, 0.5, -1, 1, 2.5, 1}, collisionbox = {-1, 0.5, -1, 1, 2.5, 1},
mesh = "mcl_end_crystal.b3d", mesh = "mcl_end_crystal.b3d",
textures = {"mcl_end_crystal.png"}, textures = {"mcl_end_crystal.png"},