new torch style + moved coins to money mod
@ -63,19 +63,3 @@ minetest.register_craftitem("default:twig", {
|
||||
description = "Twig",
|
||||
inventory_image = "default_twig.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("default:coin", {
|
||||
description = "Coin",
|
||||
inventory_image = "default_coin.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("default:silver_coin", {
|
||||
description = "Silver Coin",
|
||||
inventory_image = "default_silver_coin.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("default:xp", {
|
||||
description = "XP",
|
||||
inventory_image = "default_xp.png",
|
||||
stack_max = 99*99,
|
||||
})
|
||||
|
@ -170,7 +170,7 @@ minetest.register_node("default:box", {
|
||||
after_dig_node = default.drop_items,
|
||||
})
|
||||
|
||||
default.treasure_chest_items = {"default:dirt", "default:sand", "default:stone_item", "default:coin", "default:coal_lump", "default:wood"}
|
||||
default.treasure_chest_items = {"money:coin", "money:silver_coin", "default:ruby"}
|
||||
minetest.register_node("default:treasure_chest", {
|
||||
description = "Treasure Chest",
|
||||
tiles = {"default_treasure_chest.png"},
|
||||
|
10
mods/money/init.lua
Normal file
@ -0,0 +1,10 @@
|
||||
minetest.register_craftitem("money:coin", {
|
||||
description = "Coin",
|
||||
inventory_image = "money_coin.png",
|
||||
})
|
||||
|
||||
minetest.register_craftitem("money:silver_coin", {
|
||||
description = "Silver Coin",
|
||||
inventory_image = "money_silver_coin.png",
|
||||
})
|
||||
|
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 349 B |
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 347 B |
@ -1,58 +1,21 @@
|
||||
minetest.register_node("torch:torch", {
|
||||
description = "Torch",
|
||||
tiles = {"torch_wood.png"},
|
||||
drawtype = "mesh",
|
||||
mesh = "torch_torch.obj",
|
||||
tiles = {"torch_torch_floor.png", "torch_torch_ceiling.png", "torch_torch_wall.png"},
|
||||
drawtype = "torchlike",
|
||||
groups = {crumbly = 3},
|
||||
paramtype = "light",
|
||||
paramtype2 = "facedir",
|
||||
paramtype2 = "wallmounted",
|
||||
light_source = 14,
|
||||
walkable = false,
|
||||
inventory_image = "torch_torch_inv.png",
|
||||
--wield_image = "torch_torch_inv.png",
|
||||
})
|
||||
|
||||
minetest.register_abm({
|
||||
nodenames = {"torch:torch"},
|
||||
interval = 10.0,
|
||||
chance = 1,
|
||||
action = function(pos, node, active_object_count, active_object_count_wider)
|
||||
pos.y = pos.y + 0.2
|
||||
minetest.add_particlespawner({
|
||||
amount = 10,
|
||||
time = 10,
|
||||
minpos = pos,
|
||||
maxpos = pos,
|
||||
minvel = {x=0, y=0.1, z=0},
|
||||
maxvel = {x=0, y=0, z=0},
|
||||
minacc = {x=0, y=0, z=0},
|
||||
maxacc = {x=0, y=0, z=0},
|
||||
minexptime = 1,
|
||||
maxexptime = 1,
|
||||
minsize = 1,
|
||||
maxsize = 1,
|
||||
collisiondetection = false,
|
||||
vertical = false,
|
||||
texture = "torch_flame.png",
|
||||
})
|
||||
minetest.add_particlespawner({
|
||||
amount = 50,
|
||||
time = 10,
|
||||
minpos = pos,
|
||||
maxpos = pos,
|
||||
minvel = {x=0, y=0.5, z=0},
|
||||
maxvel = {x=0, y=0, z=0},
|
||||
minacc = {x=0, y=0, z=0},
|
||||
maxacc = {x=0, y=0, z=0},
|
||||
minexptime = 1,
|
||||
maxexptime = 1,
|
||||
minsize = 3,
|
||||
maxsize = 3,
|
||||
collisiondetection = false,
|
||||
vertical = false,
|
||||
texture = "torch_smoke.png",
|
||||
})
|
||||
end,
|
||||
legacy_wallmounted = true,
|
||||
selection_box = {
|
||||
type = "wallmounted",
|
||||
wall_top = {-0.1, 0.5 - 0.6, -0.1, 0.1, 0.5, 0.1},
|
||||
wall_bottom = {-0.1, -0.5, -0.1, 0.1, -0.5 + 0.6, 0.1},
|
||||
wall_side = {-0.5, -0.3, -0.1, -0.5 + 0.3, 0.3, 0.1},
|
||||
},
|
||||
wield_image = "torch_torch_inv.png",
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
|
@ -1,10 +0,0 @@
|
||||
# Blender MTL File: 'None'
|
||||
# Material Count: 1
|
||||
|
||||
newmtl None
|
||||
Ns 0
|
||||
Ka 0.000000 0.000000 0.000000
|
||||
Kd 0.8 0.8 0.8
|
||||
Ks 0.8 0.8 0.8
|
||||
d 1
|
||||
illum 2
|
@ -1,40 +0,0 @@
|
||||
# Blender v2.69 (sub 0) OBJ File: ''
|
||||
# www.blender.org
|
||||
mtllib torch_torch.mtl
|
||||
o Cube.001
|
||||
v -0.075000 -0.555968 1.002726
|
||||
v -0.075000 -0.619360 0.866779
|
||||
v 0.075000 -0.619360 0.866779
|
||||
v 0.075000 -0.555968 1.002726
|
||||
v -0.075000 0.220916 0.159460
|
||||
v -0.075000 0.157523 0.023513
|
||||
v 0.075000 0.157523 0.023513
|
||||
v 0.075000 0.220916 0.159460
|
||||
vt 0.159707 0.720916
|
||||
vt 0.295653 0.657523
|
||||
vt -0.366779 -0.119360
|
||||
vt -0.502726 -0.055968
|
||||
vt 0.425000 0.657523
|
||||
vt 0.575000 0.657523
|
||||
vt 0.575000 -0.119360
|
||||
vt 0.425000 -0.119360
|
||||
vt 0.575000 0.720916
|
||||
vt 0.425000 0.720916
|
||||
vt 0.425000 -0.055968
|
||||
vt 0.575000 -0.055968
|
||||
vt 0.425000 0.497274
|
||||
vt 0.425000 0.633221
|
||||
vt 0.575000 0.633221
|
||||
vt 0.575000 0.497274
|
||||
vt 0.575000 0.159707
|
||||
vt 0.575000 0.295653
|
||||
vt 0.425000 0.295653
|
||||
vt 0.425000 0.159707
|
||||
usemtl None
|
||||
s off
|
||||
f 5/1 6/2 2/3 1/4
|
||||
f 6/5 7/6 3/7 2/8
|
||||
f 7/2 8/1 4/4 3/3
|
||||
f 8/9 5/10 1/11 4/12
|
||||
f 1/13 2/14 3/15 4/16
|
||||
f 8/17 7/18 6/19 5/20
|
Before Width: | Height: | Size: 216 B |
Before Width: | Height: | Size: 192 B |
BIN
mods/torch/textures/torch_torch_ceiling.png
Normal file
After Width: | Height: | Size: 488 B |
BIN
mods/torch/textures/torch_torch_floor.png
Normal file
After Width: | Height: | Size: 482 B |
BIN
mods/torch/textures/torch_torch_wall.png
Normal file
After Width: | Height: | Size: 493 B |
Before Width: | Height: | Size: 286 B |