cool craftings
This commit is contained in:
parent
4c21c72aba
commit
0b4456cf7e
@ -25,7 +25,15 @@ minetest.register_node("amogus_blocks:tv", {
|
||||
"crt.png"
|
||||
},
|
||||
paramtype2 = "facedir",
|
||||
drop = 'amogus_blocks:amogus_blocks', groups = {stone=3},
|
||||
drop = { -- amogus_items:capacitor amogus_items:pcb
|
||||
-- drop two items
|
||||
max_items = 2,
|
||||
items = {
|
||||
{items = {'amogus_items:capacitor'}, rarity = 1},
|
||||
{items = {'amogus_items:pcb'}, rarity = 1},
|
||||
|
||||
},
|
||||
}, groups = {stone=3},
|
||||
})
|
||||
|
||||
minetest.register_node("amogus_blocks:bricks", {
|
||||
@ -376,6 +384,14 @@ minetest.register_node("amogus_blocks:sussium_ore", {
|
||||
--sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
minetest.register_node("amogus_blocks:iron_ore", {
|
||||
description = "Iron Ore",
|
||||
tiles = {"iron_ore.png"},
|
||||
groups = {stone = 3},
|
||||
drop = 'amogus_items:iron_ingot',
|
||||
--sounds = default.node_sound_stone_defaults(),
|
||||
})
|
||||
|
||||
local loot = {
|
||||
"amogus_items:amogus",
|
||||
"amogus_items:sprite",
|
||||
|
BIN
mods/amogus_blocks/textures/iron_ore.png
Normal file
BIN
mods/amogus_blocks/textures/iron_ore.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 338 B |
@ -252,4 +252,37 @@ minetest.register_craft({
|
||||
{"", "", ""},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "amogus_items:dynamite",
|
||||
recipe = {
|
||||
{"amogus_items:capacitor", "amogus_items:capacitor", "amogus_items:capacitor"},
|
||||
{"amogus_items:capacitor", "amogus_items:pcb", "amogus_items:capacitor"},
|
||||
{"amogus_blocks:obsusian", "amogus_blocks:obsusian", "amogus_blocks:obsusian"},
|
||||
}
|
||||
})
|
||||
minetest.register_craft({
|
||||
output = "carts:cart",
|
||||
recipe = {
|
||||
{"amogus_items:iron_ingot", "", "amogus_items:iron_ingot"},
|
||||
{"amogus_items:iron_ingot", "amogus_items:iron_ingot", "amogus_items:iron_ingot"},
|
||||
{"", "amogus_items:iron_ingot", ""},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "carts:powerrail 16",
|
||||
recipe = {
|
||||
{"amogus_items:iron_ingot", "amogus_items:pcb", "amogus_items:iron_ingot"},
|
||||
{"amogus_items:iron_ingot", "amogus_items:wooden_plank", "amogus_items:iron_ingot"},
|
||||
{"amogus_items:iron_ingot", "amogus_items:wooden_plank", "amogus_items:iron_ingot"},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = "carts:rail 16",
|
||||
recipe = {
|
||||
{"amogus_items:iron_ingot", "amogus_items:wooden_plank", "amogus_items:iron_ingot"},
|
||||
{"amogus_items:iron_ingot", "amogus_items:wooden_plank", "amogus_items:iron_ingot"},
|
||||
{"amogus_items:iron_ingot", "amogus_items:wooden_plank", "amogus_items:iron_ingot"},
|
||||
}
|
||||
})
|
@ -3,11 +3,11 @@ minetest.register_on_joinplayer(function(player)
|
||||
--player:set_sky({r=0, g=0, b=0}, "plain", {})
|
||||
|
||||
-- play music in loop without position
|
||||
minetest.sound_play("amogus_incomming", {
|
||||
to_player = player:get_player_name(),
|
||||
loop = true,
|
||||
gain = 1
|
||||
})
|
||||
-- minetest.sound_play("amogus_incomming", {
|
||||
-- to_player = player:get_player_name(),
|
||||
-- loop = true,
|
||||
--gain = 1
|
||||
--})
|
||||
end)
|
||||
|
||||
amogus_general = { }
|
||||
|
@ -87,8 +87,18 @@ minetest.register_ore({
|
||||
clust_size = 1,
|
||||
y_max = 31000,
|
||||
y_min = -31000,
|
||||
})minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "amogus_blocks:iron_ore",
|
||||
wherein = "amogus_blocks:stone",
|
||||
clust_scarcity = 8 * 8 * 8,
|
||||
clust_num_ores = 1,
|
||||
clust_size = 1,
|
||||
y_max = 31000,
|
||||
y_min = -31000,
|
||||
})
|
||||
|
||||
|
||||
minetest.register_decoration({
|
||||
deco_type = "simple",
|
||||
place_on = {"amogus_blocks:grass"},
|
||||
|
@ -79,6 +79,8 @@ minetest.register_craftitem("amogus_items:amogus", {
|
||||
5, -- max_hear_distance
|
||||
2.0 -- pitch
|
||||
)
|
||||
|
||||
itemstack:take_item()
|
||||
end
|
||||
return itemstack
|
||||
end
|
||||
@ -391,6 +393,8 @@ minetest.register_tool("amogus_items:dynamite", {
|
||||
if pointed_thing.type == "node" then
|
||||
local pos = pointed_thing.above
|
||||
minetest.add_entity(pos, "amogus_items:dynamite_entity")
|
||||
-- remove one item from the itemstack
|
||||
itemstack:take_item()
|
||||
end
|
||||
return itemstack
|
||||
end
|
||||
@ -418,7 +422,7 @@ minetest.register_entity("amogus_items:dynamite_entity", {
|
||||
maxexptime = 3,
|
||||
minsize = 1,
|
||||
maxsize = 2,
|
||||
texture = "plasma_effect.png",
|
||||
texture = "capacitor.png",
|
||||
})
|
||||
self.object:remove()
|
||||
end
|
||||
|
BIN
mods/amogus_items/textures/iron_ingot.png
Normal file
BIN
mods/amogus_items/textures/iron_ingot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 259 B |
@ -22,7 +22,7 @@ player_api.register_model("amogus_entity.obj", {
|
||||
collisionbox = {-0.3, 0.0, -0.3, 0.3, 1.7, 0.3},
|
||||
|
||||
visual = "mesh",
|
||||
visual_size = {x=10, y=10, z=10},
|
||||
visual_size = {x=15, y=15, z=15},
|
||||
|
||||
})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user