kfodskfos
@ -167,8 +167,8 @@ minetest.register_node("amogus_blocks:water", {
|
|||||||
buildable_to = true,
|
buildable_to = true,
|
||||||
drowning = 1,
|
drowning = 1,
|
||||||
liquidtype = "source",
|
liquidtype = "source",
|
||||||
liquid_alternative_flowing = "amogus_blocks:water_flowing",
|
--liquid_alternative_flowing = "amogus_blocks:water_flowing",
|
||||||
liquid_alternative_source = "amogus_blocks:water_source",
|
--liquid_alternative_source = "amogus_blocks:water_source",
|
||||||
liquid_viscosity = 1,
|
liquid_viscosity = 1,
|
||||||
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
|
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
|
||||||
groups = {water = 3, liquid = 3, puts_out_fire = 1},
|
groups = {water = 3, liquid = 3, puts_out_fire = 1},
|
||||||
@ -183,9 +183,16 @@ minetest.register_node("amogus_blocks:dirt", {
|
|||||||
--}),
|
--}),
|
||||||
})
|
})
|
||||||
|
|
||||||
--minetest.register_alias("mapgen_water_source", "amogus_blocks:water")
|
minetest.register_node("amogus_blocks:stone", {
|
||||||
|
description = "Stone",
|
||||||
|
tiles = {"s.png"},
|
||||||
|
groups = {cracky = 3, stone = 1},
|
||||||
|
--sounds = default.node_sound_stone_defaults(),
|
||||||
|
})
|
||||||
|
|
||||||
|
--add gold block and sussium ore
|
||||||
|
|
||||||
|
|
||||||
-- add lucky block with array of loot that can be easly edited
|
|
||||||
local loot = {
|
local loot = {
|
||||||
"amogus_items:amogus",
|
"amogus_items:amogus",
|
||||||
"amogus_items:sprite",
|
"amogus_items:sprite",
|
||||||
@ -209,3 +216,5 @@ minetest.register_node("amogus_blocks:lucky_block", {
|
|||||||
end
|
end
|
||||||
})
|
})
|
||||||
minetest.register_alias("mapgen_stone", "amogus_blocks:grass")
|
minetest.register_alias("mapgen_stone", "amogus_blocks:grass")
|
||||||
|
|
||||||
|
--minetest.register_alias("mapgen_water_source", "amogus_blocks:water")
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
-- add amogus_blocks:tv to the world generator on the survace at random places
|
minetest.register_alias("mapgen_stone", "amogus_blocks:grass")
|
||||||
|
--minetest.register_alias("mapgen_water_source", "amogus_blocks:water")
|
@ -101,26 +101,31 @@ minetest.register_tool("amogus_items:lightsaber_green", {
|
|||||||
sound = {breaks = "amogus_sound"},
|
sound = {breaks = "amogus_sound"},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- add lucky block with array of loot that can be easly edited
|
-- add theese items : goldenpickaxe, wooden plank, gold_ingot, sussium_ingot
|
||||||
local loot = {
|
minetest.register_craftitem("amogus_items:wooden_plank", {
|
||||||
"amogus_items:amogus",
|
description = "Wooden Plank",
|
||||||
"amogus_items:sprite",
|
inventory_image = "wooden_plank.png",
|
||||||
"amogus_items:coke",
|
})
|
||||||
"amogus_items:fanta",
|
minetest.register_craftitem("amogus_items:gold_ingot", {
|
||||||
"amogus_items:tomato",
|
description = "Gold Ingot",
|
||||||
"amogus_items:lightsaber_blue",
|
inventory_image = "gold_ingot.png",
|
||||||
"amogus_items:lightsaber_red",
|
})
|
||||||
"amogus_items:lightsaber_green",
|
minetest.register_craftitem("amogus_items:sussium_ingot", {
|
||||||
}
|
description = "Sussium Ingot",
|
||||||
|
inventory_image = "sussium_ingot.png",
|
||||||
minetest.register_node("amogus_items:lucky_block", {
|
})
|
||||||
description = "Lucky Block",
|
|
||||||
tiles = {"luckyblock.png"},
|
|
||||||
groups = {cracky = 3},
|
minetest.register_tool("amogus_items:goldenpickaxe", {
|
||||||
on_punch = function(pos, node, puncher, pointed_thing)
|
description = "Golden Pickaxe",
|
||||||
local item = loot[math.random(#loot)]
|
inventory_image = "goldenpickaxe.png",
|
||||||
minetest.add_item(pos, item)
|
tool_capabilities = {
|
||||||
minetest.remove_node(pos)
|
full_punch_interval = 0.1,
|
||||||
|
max_drop_level=3,
|
||||||
end
|
groupcaps={
|
||||||
|
cracky={times={[1]=0.1, [2]=0.1, [3]=0.1}, uses=0, maxlevel=3},
|
||||||
|
},
|
||||||
|
damage_groups = {fleshy=10},
|
||||||
|
},
|
||||||
|
sound = {breaks = "amogus_sound"},
|
||||||
})
|
})
|
BIN
mods/amogus_items/textures/gold_ingot.png
Normal file
After Width: | Height: | Size: 204 B |
BIN
mods/amogus_items/textures/goldenpick.png
Normal file
After Width: | Height: | Size: 149 B |
Before Width: | Height: | Size: 209 B After Width: | Height: | Size: 209 B |
Before Width: | Height: | Size: 142 B After Width: | Height: | Size: 142 B |
BIN
mods/amogus_items/textures/sussium_ingot.png
Normal file
After Width: | Height: | Size: 160 B |