mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-06 08:37:30 +01:00
Graphical changes and preparations
- added mesh - added adjusted texture - marked lines in need of attention
This commit is contained in:
parent
326ad65158
commit
00ef72c646
30
mods/ITEMS/mcl_fireworks/models/mcl_fireworks_rocket.obj
Normal file
30
mods/ITEMS/mcl_fireworks/models/mcl_fireworks_rocket.obj
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# Blender 3.6.7
|
||||||
|
# www.blender.org
|
||||||
|
o Plane
|
||||||
|
v -0.500000 1.000000 0.500000
|
||||||
|
v 0.500000 1.000000 0.500000
|
||||||
|
v -0.500000 1.000000 -0.500000
|
||||||
|
v 0.500000 1.000000 -0.500000
|
||||||
|
v -0.300517 0.000000 0.300517
|
||||||
|
v 0.300517 0.000000 -0.300517
|
||||||
|
v -0.300517 1.500000 0.300517
|
||||||
|
v 0.300517 1.500000 -0.300517
|
||||||
|
v 0.300517 0.000000 0.300517
|
||||||
|
v -0.300517 0.000000 -0.300517
|
||||||
|
v 0.300517 1.500000 0.300517
|
||||||
|
v -0.300517 1.500000 -0.300517
|
||||||
|
vn -0.0000 1.0000 -0.0000
|
||||||
|
vn 0.7071 -0.0000 0.7071
|
||||||
|
vn 0.7071 -0.0000 -0.7071
|
||||||
|
vt 0.562500 0.562500
|
||||||
|
vt 1.000000 0.562500
|
||||||
|
vt 1.000000 1.000000
|
||||||
|
vt 0.562500 1.000000
|
||||||
|
vt -0.000000 0.125000
|
||||||
|
vt 0.437500 0.125000
|
||||||
|
vt 0.437500 0.937500
|
||||||
|
vt -0.000000 0.937500
|
||||||
|
s 0
|
||||||
|
f 1/1/1 2/2/1 4/3/1 3/4/1
|
||||||
|
f 5/5/2 6/6/2 8/7/2 7/8/2
|
||||||
|
f 9/5/3 10/6/3 12/7/3 11/8/3
|
@ -12,10 +12,11 @@ local firework_entity = {
|
|||||||
physical = true,
|
physical = true,
|
||||||
pointable = false,
|
pointable = false,
|
||||||
visual = "mesh",
|
visual = "mesh",
|
||||||
mesh = "mcl_bows_arrow.obj",
|
visual_size = {x=1, y=2}, -- TODO adjust
|
||||||
visual_size = {x=-1, y=1},
|
mesh = "mcl_fireworks_rocket.obj",
|
||||||
textures = {"mcl_fireworks_rocket.png"},
|
textures = {"mcl_fireworks_entity.png"},
|
||||||
collisionbox = {-0.19, -0.125, -0.19, 0.19, 0.125, 0.19},
|
backface_culling = false,
|
||||||
|
collisionbox = {-0.19, -0.125, -0.19, 0.19, 0.125, 0.19}, -- TODO verify
|
||||||
collide_with_objects = false,
|
collide_with_objects = false,
|
||||||
liquid_drag = true,
|
liquid_drag = true,
|
||||||
_fire_damage_resistant = true,
|
_fire_damage_resistant = true,
|
||||||
@ -44,7 +45,7 @@ local firework_entity = {
|
|||||||
vl_projectile.has_tracer,
|
vl_projectile.has_tracer,
|
||||||
|
|
||||||
function(self, dtime)
|
function(self, dtime)
|
||||||
self.object:add_velocity(vector.new(0, dtime, 0))
|
self.object:add_velocity(vector.new(0, dtime, 0)) -- TODO timeout
|
||||||
end,
|
end,
|
||||||
|
|
||||||
vl_projectile.collides_with_solids,
|
vl_projectile.collides_with_solids,
|
||||||
@ -119,8 +120,8 @@ local firework_entity = {
|
|||||||
|
|
||||||
local function register_rocket(n, duration, force)
|
local function register_rocket(n, duration, force)
|
||||||
def = table.copy(firework_entity)
|
def = table.copy(firework_entity)
|
||||||
vl_projectile.register("mcl_fireworks:rocket_" .. n, def)
|
vl_projectile.register("mcl_fireworks:rocket_" .. n, def) -- TODO one entity
|
||||||
minetest.register_craftitem("mcl_fireworks:rocket_" .. n, {
|
minetest.register_craftitem("mcl_fireworks:rocket_" .. n, { -- TODO one item, use metadata
|
||||||
description = description,
|
description = description,
|
||||||
_tt_help = tt_help .. " " .. duration,
|
_tt_help = tt_help .. " " .. duration,
|
||||||
inventory_image = "mcl_fireworks_rocket.png",
|
inventory_image = "mcl_fireworks_rocket.png",
|
||||||
@ -138,7 +139,7 @@ local function register_rocket(n, duration, force)
|
|||||||
end,
|
end,
|
||||||
on_place = function(itemstack, user, pointed_thing)
|
on_place = function(itemstack, user, pointed_thing)
|
||||||
local pos = pointed_thing.above
|
local pos = pointed_thing.above
|
||||||
pos.y = pos.y + 1
|
-- pos.y = pos.y + 1
|
||||||
vl_projectile.create("mcl_fireworks:rocket_" .. n, {
|
vl_projectile.create("mcl_fireworks:rocket_" .. n, {
|
||||||
pos=pos,
|
pos=pos,
|
||||||
velocity=vector.new(0,1,0)
|
velocity=vector.new(0,1,0)
|
||||||
|
BIN
textures/mcl_fireworks_entity.png
Normal file
BIN
textures/mcl_fireworks_entity.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 199 B |
Loading…
Reference in New Issue
Block a user