everythings working

master
NathanSalapat 2014-11-23 16:20:06 -06:00
parent 8c6d61773f
commit 5dcb6ec765
14 changed files with 39 additions and 41 deletions

View File

@ -7,7 +7,7 @@ Lighter image created by me with Blender.
Code:
Torch rotation by addi, shamelessly copied from the 3d_torches mod.
3d torch code and nodebox's from Carbone, by Calinou CC0 1.0 Will be replaced with mesh torches once I figure that bit out.
Inspiration:
Napiophelios, from the forum, who gave me some really good ideas from the old campfire mod, which I didn't even know about.

View File

@ -1,3 +1,10 @@
11-22-14:
Changed a couple textures.
Currently using nodeboxes for torches, so they are no longer invisible.
11-19-14:
Campfires are working altogether now. Craft kindling and add some fuel to it, and then click on it with the lighter until it starts on fire.
11-12-14:
Removed the ABM for torches, and replaced the two nodes with just one.
Tweaked the lighter, it should last longer and light fires faster. Added a sparking sound effect as well.

View File

@ -203,32 +203,37 @@ minetest.register_node(':default:gravel', {
}),
})
minetest.register_node(':default:torch', {
description = 'Torch',
drawtype = 'mesh',
tiles = {'more_fire_torch.png'},
inventory_image = 'default_torch_on_floor.png',
wield_image = 'default_torch_on_floor.png',
paramtype = 'light',
paramtype2 = 'wallmounted',
minetest.register_node(":default:torch", {
description = "Torch",
drawtype = "nodebox",
tiles = {
{name = "default_torch_new_top.png", animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.0}},
{name = "default_torch_new_bottom.png", animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.0}},
{name = "default_torch_new_side.png", animation = {type = "vertical_frames", aspect_w = 16, aspect_h = 16, length = 3.0}},
},
inventory_image = "default_torch_new_inv.png",
wield_image = "default_torch_new_inv.png",
wield_scale = {x = 1, y = 1, z = 1.25},
paramtype = "light",
paramtype2 = "wallmounted",
sunlight_propagates = true,
is_ground_content = false,
walkable = false,
light_source = LIGHT_MAX-1,
groups = {choppy=2,dig_immediate=3,flammable=1,attached_node=1,hot=2},
sounds = default.node_sound_defaults(),
mesh = {
type = 'wallmounted',
wall_top = ('more_fire_campfire.obj'),
wall_bottom = ('more_fire_torch.obj'),
wall_side = ('more_fire_torch_wall.obj'),
light_source = LIGHT_MAX - 1,
node_box = {
type = "wallmounted",
wall_top = {-0.0625, -0.0625, -0.0625, 0.0625, 0.5 , 0.0625},
wall_bottom = {-0.0625, -0.5 , -0.0625, 0.0625, 0.0625, 0.0625},
wall_side = {-0.5 , -0.5 , -0.0625, -0.375, 0.0625, 0.0625},
},
selection_box = {
type = "wallmounted",
wall_top = {-0.25, -0.5 , -0.25, 0.25, 0.0625, 0.25},
wall_bottom = {-1/11, -1/2, -1/11, 1/11, 1/3, 1/11},
wall_side = {-0.5, -0.3, -0.1, -0.5+0.3, 0.3, 0.1},
wall_top = {-0.05, -0.05, -0.25, 0.25, 0.5 , 0.25},
wall_bottom = {-0.25, -0.5 , -0.25, 0.25, 0.0625, 0.25},
wall_side = {-0.25, -0.5 , -0.25, -0.5, 0.0625, 0.25},
},
groups = {choppy = 2, dig_immediate = 3, flammable = 1, attached_node = 1, hot = 2},
sounds = default.node_sound_wood_defaults(),
})
minetest.register_node('more_fire:charcoal_block', {

Binary file not shown.

View File

@ -1,7 +1,5 @@
# Blender v2.71 (sub 6) OBJ File: 'campfire.blend'
# Blender v2.72 (sub 2) OBJ File: 'campfire.blend'
# www.blender.org
mtllib more_fire_campfire.mtl
o Flames.001_Cube.004
v 0.353153 -0.337287 0.000000
v -0.366847 -0.337287 0.000000
v -0.366847 0.382713 -0.000000
@ -19,12 +17,10 @@ vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
g Flames.001_Cube.004_Fire
usemtl Fire
s off
f 4/1 5/2 7/3 6/4
f 8/1 9/2 11/3 10/4
f 1/1 2/2 3/3 12/4
o Campfire_Cube.003
v 0.151217 -0.347540 0.439253
v 0.151217 -0.207593 0.411057
v 0.008458 -0.207593 0.411057
@ -97,8 +93,7 @@ vt 0.005089 0.207467
vt 0.005089 0.007570
vt 0.991734 0.007570
vt 0.991734 0.207467
g Campfire_Cube.003_Flames
usemtl Flames
g Campfire_Cube.003_Logs-Stone
s off
f 20/5 19/6 18/7 17/8
f 14/9 13/10 17/11 18/12

View File

@ -1,7 +1,5 @@
# Blender v2.71 (sub 6) OBJ File: 'campfire.blend'
# Blender v2.72 (sub 2) OBJ File: 'campfire.blend'
# www.blender.org
mtllib more_fire_contained_campfire.mtl
o Flames_Cube.001
v 0.353153 -0.337287 0.000000
v -0.366847 -0.337287 0.000000
v -0.366847 0.382713 -0.000000
@ -19,12 +17,10 @@ vt 1.000000 0.000000
vt 1.000000 1.000000
vt 0.000000 1.000000
g Flames_Cube.001_Fire
usemtl Fire
s off
f 4/1 5/2 7/3 6/4
f 8/1 9/2 11/3 10/4
f 1/1 2/2 3/3 12/4
o Contained_Fire_Cube.000
v 0.109850 -0.357143 0.305314
v 0.109850 -0.248233 0.283371
v -0.001248 -0.248233 0.283371
@ -363,7 +359,6 @@ vt 0.312500 0.625000
vt 0.031250 0.625000
vt 0.023438 0.968750
g Contained_Fire_Cube.000_Logs-Stone
usemtl Logs-Stone
s off
f 20/5 17/6 18/7 19/8
f 14/9 18/10 17/11 13/12

View File

@ -1,7 +1,5 @@
# Blender v2.71 (sub 6) OBJ File: 'campfire.blend'
# Blender v2.72 (sub 2) OBJ File: 'campfire.blend'
# www.blender.org
mtllib more_fire_kindling.mtl
o Campfire_Cube.003
v 0.151217 -0.347540 0.439253
v 0.151217 -0.207593 0.411057
v 0.008458 -0.207593 0.411057
@ -74,7 +72,7 @@ vt 0.005089 0.207467
vt 0.005089 0.007570
vt 0.991734 0.007570
vt 0.991734 0.207467
usemtl Logs-Stone
g Campfire_Cube.003_Logs-Stone
s off
f 8/1 7/2 6/3 5/4
f 2/5 1/6 5/7 6/8

View File

@ -1,7 +1,5 @@
# Blender v2.71 (sub 6) OBJ File: 'campfire.blend'
# Blender v2.72 (sub 2) OBJ File: 'campfire.blend'
# www.blender.org
mtllib more_fire_kindling_contained.mtl
o Contained_Fire_Cube.000
v 0.109850 -0.357143 0.305314
v 0.109850 -0.248233 0.283371
v -0.001248 -0.248233 0.283371
@ -339,7 +337,7 @@ vt 0.312500 0.984375
vt 0.312500 0.625000
vt 0.031250 0.625000
vt 0.023438 0.968750
usemtl Logs-Stone
g Contained_Fire_Cube.000_Logs-Stone
s off
f 8/1 5/2 6/3 7/4
f 2/5 6/6 5/7 1/8

Binary file not shown.

Before

Width:  |  Height:  |  Size: 289 KiB

After

Width:  |  Height:  |  Size: 354 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 302 KiB

After

Width:  |  Height:  |  Size: 357 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 782 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 786 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 769 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 718 B