Finished jewelry, fixed space armor bug, added Nether Basalt Brick

master
Nathan Salapat 2020-10-09 21:45:00 -05:00
parent dd10a26edb
commit fdbd1b052f
16 changed files with 134 additions and 26 deletions

View File

@ -8,6 +8,38 @@ minetest.register_craftitem('armor:amulet_tit', {
inventory_image = 'armor_amulet_titanium.png'
})
------------------------------------------------------------------------------------------
--CRAFTING--
local rings = {
{'gol', 'epic:huntite', 'fire'},
{'gol', 'epic:float_crystal', 'gravity'},
{'gol', 'epic:bloodstone', 'healing'},
{'gol', 'ocean:prismarine_crystals', 'water'},
{'gol', 'epic:garnet', 'speed'},
{'gol', 'quartz:quartz_crystal_piece', 'jump'},
{'tit', 'epic:huntite', 'fire'},
{'tit', 'epic:float_crystal', 'gravity'},
{'tit', 'epic:bloodstone', 'healing'},
{'tit', 'ocean:prismarine_crystals', 'water'},
{'tit', 'epic:garnet', 'speed'},
{'tit', 'quartz:quartz_crystal_piece', 'jump'},
}
for i in ipairs (rings) do
local input = rings[i][1]
local jewel = rings[i][2]
local perk = rings[i][3]
unified_inventory.register_craft({
type = 'jewelry',
items = {'armor:amulet_'..input, jewel, 'default:mese_crystal', 'mobs:lava_orb'},
output = 'armor:amulet_'..input..'_'..perk..'_1'
})
end
------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------
--
--GOLD--
@ -20,7 +52,7 @@ armor:register_armor('armor:amulet_gol_fire_1', {
inventory_image = 'armor_amulet_gold.png^armor_amulet_fire.png^armor_amulet_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_amulet=1, armor_use=100, armor_fire=.1, flammable=1, not_in_creative_inventory=1},
groups = {armor_amulet=1, armor_use=100, armor_fire=.1, flammable=1},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -77,7 +109,7 @@ armor:register_armor('armor:amulet_gol_gravity_1', {
inventory_image = 'armor_amulet_gold.png^armor_amulet_gravity.png^armor_amulet_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_amulet=1, armor_use=100, physics_gravity=-.05, not_in_creative_inventory=1},
groups = {armor_amulet=1, armor_use=100, physics_gravity=-.05},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -134,7 +166,7 @@ armor:register_armor('armor:amulet_gol_healing_1', {
inventory_image = 'armor_amulet_gold.png^armor_amulet_healing.png^armor_amulet_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_amulet=1, armor_use=100, armor_heal=.25, not_in_creative_inventory=1},
groups = {armor_amulet=1, armor_use=100, armor_heal=.25},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -191,7 +223,7 @@ armor:register_armor('armor:amulet_gol_jump_1', {
inventory_image = 'armor_amulet_gold.png^armor_amulet_jump.png^armor_amulet_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_amulet=1, armor_use=100, physics_jump=.05, not_in_creative_inventory=1},
groups = {armor_amulet=1, armor_use=100, physics_jump=.05},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -248,7 +280,7 @@ armor:register_armor('armor:amulet_gol_speed_1', {
inventory_image = 'armor_amulet_gold.png^armor_amulet_speed.png^armor_amulet_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_amulet=1, armor_use=100, physics_speed=.1, not_in_creative_inventory=1},
groups = {armor_amulet=1, armor_use=100, physics_speed=.1},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -305,7 +337,7 @@ armor:register_armor('armor:amulet_gol_water_1', {
inventory_image = 'armor_amulet_gold.png^armor_amulet_water.png^armor_amulet_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_amulet=1, armor_use=100, armor_water=.1, not_in_creative_inventory=1},
groups = {armor_amulet=1, armor_use=100, armor_water=.1},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -366,7 +398,7 @@ armor:register_armor('armor:amulet_tit_fire_1', {
inventory_image = 'armor_amulet_titanium.png^armor_amulet_fire.png^armor_amulet_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_amulet=1, armor_use=75, armor_fire=.1, flammable=1, not_in_creative_inventory=1},
groups = {armor_amulet=1, armor_use=75, armor_fire=.1, flammable=1},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -423,7 +455,7 @@ armor:register_armor('armor:amulet_tit_gravity_1', {
inventory_image = 'armor_amulet_titanium.png^armor_amulet_gravity.png^armor_amulet_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_amulet=1, armor_use=75, physics_gravity=-.05, not_in_creative_inventory=1},
groups = {armor_amulet=1, armor_use=75, physics_gravity=-.05},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -480,7 +512,7 @@ armor:register_armor('armor:amulet_tit_healing_1', {
inventory_image = 'armor_amulet_titanium.png^armor_amulet_healing.png^armor_amulet_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_amulet=1, armor_use=75, armor_heal=.25, not_in_creative_inventory=1},
groups = {armor_amulet=1, armor_use=75, armor_heal=.25},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -537,7 +569,7 @@ armor:register_armor('armor:amulet_tit_jump_1', {
inventory_image = 'armor_amulet_titanium.png^armor_amulet_jump.png^armor_amulet_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_amulet=1, armor_use=75, physics_jump=.05, not_in_creative_inventory=1},
groups = {armor_amulet=1, armor_use=75, physics_jump=.05},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -594,7 +626,7 @@ armor:register_armor('armor:amulet_tit_speed_1', {
inventory_image = 'armor_amulet_titanium.png^armor_amulet_speed.png^armor_amulet_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_amulet=1, armor_use=75, physics_speed=.1, not_in_creative_inventory=1},
groups = {armor_amulet=1, armor_use=75, physics_speed=.1},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -651,7 +683,7 @@ armor:register_armor('armor:amulet_tit_water_1', {
inventory_image = 'armor_amulet_titanium.png^armor_amulet_water.png^armor_amulet_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_amulet=1, armor_use=75, armor_water=.1, not_in_creative_inventory=1},
groups = {armor_amulet=1, armor_use=75, armor_water=.1},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})

View File

@ -27,6 +27,37 @@ minetest.register_craftitem('armor:ring_tit', {
description = 'Titanium Ring',
inventory_image = 'armor_ring_titanium.png'
})
------------------------------------------------------------------------------------------
--CRAFTING--
local rings = {
{'gol', 'epic:huntite', 'fire'},
{'gol', 'epic:float_crystal', 'gravity'},
{'gol', 'epic:bloodstone', 'healing'},
{'gol', 'ocean:prismarine_crystals', 'water'},
{'gol', 'epic:garnet', 'speed'},
{'gol', 'quartz:quartz_crystal_piece', 'jump'},
{'tit', 'epic:huntite', 'fire'},
{'tit', 'epic:float_crystal', 'gravity'},
{'tit', 'epic:bloodstone', 'healing'},
{'tit', 'ocean:prismarine_crystals', 'water'},
{'tit', 'epic:garnet', 'speed'},
{'tit', 'quartz:quartz_crystal_piece', 'jump'},
}
for i in ipairs (rings) do
local input = rings[i][1]
local jewel = rings[i][2]
local perk = rings[i][3]
unified_inventory.register_craft({
type = 'jewelry',
items = {'armor:ring_'..input, jewel, 'default:mese_crystal', 'mobs:lava_orb'},
output = 'armor:ring_'..input..'_'..perk..'_1'
})
end
------------------------------------------------------------------------------------------
--
--GOLD--
@ -39,7 +70,7 @@ armor:register_armor('armor:ring_gol_fire_1', {
inventory_image = 'armor_ring_gold.png^armor_ring_fire.png^armor_ring_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_ring=1, armor_use=100, armor_fire=.1, flammable=1, not_in_creative_inventory=1},
groups = {armor_ring=1, armor_use=100, armor_fire=.1},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -96,7 +127,7 @@ armor:register_armor('armor:ring_gol_gravity_1', {
inventory_image = 'armor_ring_gold.png^armor_ring_gravity.png^armor_ring_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_ring=1, armor_use=100, physics_gravity=-.05, not_in_creative_inventory=1},
groups = {armor_ring=1, armor_use=100, physics_gravity=-.05},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -153,7 +184,7 @@ armor:register_armor('armor:ring_gol_healing_1', {
inventory_image = 'armor_ring_gold.png^armor_ring_healing.png^armor_ring_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_ring=1, armor_use=100, armor_heal=.25, not_in_creative_inventory=1},
groups = {armor_ring=1, armor_use=100, armor_heal=.25},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -210,7 +241,7 @@ armor:register_armor('armor:ring_gol_jump_1', {
inventory_image = 'armor_ring_gold.png^armor_ring_jump.png^armor_ring_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_ring=1, armor_use=100, physics_jump=.05, not_in_creative_inventory=1},
groups = {armor_ring=1, armor_use=100, physics_jump=.05},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -267,7 +298,7 @@ armor:register_armor('armor:ring_gol_speed_1', {
inventory_image = 'armor_ring_gold.png^armor_ring_speed.png^armor_ring_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_ring=1, armor_use=100, physics_speed=.1, not_in_creative_inventory=1},
groups = {armor_ring=1, armor_use=100, physics_speed=.1},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -324,7 +355,7 @@ armor:register_armor('armor:ring_gol_water_1', {
inventory_image = 'armor_ring_gold.png^armor_ring_water.png^armor_ring_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_ring=1, armor_use=100, armor_water=.1, not_in_creative_inventory=1},
groups = {armor_ring=1, armor_use=100, armor_water=.1},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -385,7 +416,7 @@ armor:register_armor('armor:ring_tit_fire_1', {
inventory_image = 'armor_ring_titanium.png^armor_ring_fire.png^armor_ring_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_ring=1, armor_use=75, armor_fire=.1, flammable=1, not_in_creative_inventory=1},
groups = {armor_ring=1, armor_use=75, armor_fire=.1, flammable=1},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -442,7 +473,7 @@ armor:register_armor('armor:ring_tit_gravity_1', {
inventory_image = 'armor_ring_titanium.png^armor_ring_gravity.png^armor_ring_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_ring=1, armor_use=75, physics_gravity=-.05, not_in_creative_inventory=1},
groups = {armor_ring=1, armor_use=75, physics_gravity=-.05},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -499,7 +530,7 @@ armor:register_armor('armor:ring_tit_healing_1', {
inventory_image = 'armor_ring_titanium.png^armor_ring_healing.png^armor_ring_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_ring=1, armor_use=75, armor_heal=.25, not_in_creative_inventory=1},
groups = {armor_ring=1, armor_use=75, armor_heal=.25},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -556,7 +587,7 @@ armor:register_armor('armor:ring_tit_jump_1', {
inventory_image = 'armor_ring_titanium.png^armor_ring_jump.png^armor_ring_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_ring=1, armor_use=75, physics_jump=.05, not_in_creative_inventory=1},
groups = {armor_ring=1, armor_use=75, physics_jump=.05},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -613,7 +644,7 @@ armor:register_armor('armor:ring_tit_speed_1', {
inventory_image = 'armor_ring_titanium.png^armor_ring_speed.png^armor_ring_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_ring=1, armor_use=75, physics_speed=.1, not_in_creative_inventory=1},
groups = {armor_ring=1, armor_use=75, physics_speed=.1},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})
@ -670,7 +701,7 @@ armor:register_armor('armor:ring_tit_water_1', {
inventory_image = 'armor_ring_titanium.png^armor_ring_water.png^armor_ring_level_1.png',
texture = 'epic_blank.png',
preview = 'epic_blank.png',
groups = {armor_ring=1, armor_use=75, armor_water=.1, not_in_creative_inventory=1},
groups = {armor_ring=1, armor_use=75, armor_water=.1},
armor_groups = {fleshy=1},
damage_groups = {cracky=2, snappy=1, level=3},
})

View File

@ -121,7 +121,7 @@ minetest.register_node('epic:nether_with_diamond', {
})
minetest.register_node('epic:nether_basalt_with_huntite', {
description = 'Netherrack with Huntite',
description = 'Basalt with Huntite',
tiles = {
"epic_huntite_basalt.png",
"nether_basalt.png",

View File

@ -230,6 +230,13 @@ armor.set_player_armor = function(self, player)
for _, phys in pairs(self.physics) do
local value = def.groups["physics_"..phys] or 0
physics[phys] = physics[phys] + value
if def.groups['physics_gravity'] then
local pos = player:get_pos()
local altitude = pos.y
if altitude > 5000 and altitude < 7500 then
physics['gravity'] = physics['gravity'] - .2
end
end
end
for _, attr in pairs(self.attributes) do
local value = def.groups["armor_"..attr] or 0

View File

@ -130,6 +130,13 @@ minetest.register_node("nether:basalt", {
sounds = default.node_sound_stone_defaults(),
})
minetest.register_node('nether:basalt_brick', {
description = 'Basalt Brick',
tiles = {{name='nether_basalt_brick.png', align_style='world', scale=4}},
inventory_image = '[inventorycube{nether_basalt_brick.png&[sheet:4x4:1,1{nether_basalt_brick.png&[sheet:4x4:1,1{nether_basalt_brick.png&[sheet:4x4:1,1',
groups = {cracky = 2, level = 3},
sounds = default.node_sound_stone_defaults(),
})
-- creates a splash and leaves lava in place of the "nether:lava_crust"
local function smash_lava_crust(pos)
@ -229,6 +236,16 @@ stairs.register_stair_and_slab(
default.node_sound_stone_defaults()
)
stairs.register_stair_and_slab(
"nether_basalt_brick",
"nether:basalt_brick",
{cracky = 2, level = 2},
{{name='nether_basalt_brick.png', align_style='world', scale=4}},
S("Nether Basalt Stair"),
S("Nether Basalt Slab"),
default.node_sound_stone_defaults()
)
stairs.register_stair(
"netherrack",
"nether:rack",
@ -562,6 +579,14 @@ minetest.register_craft({
}
})
minetest.register_craft({
output = "nether:basalt_brick 4",
recipe = {
{"nether:basalt", "nether:basalt"},
{"nether:basalt", "nether:basalt"},
}
})
minetest.register_craft({
output = "nether:fence_nether_brick 6",
recipe = {

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View File

@ -1,4 +1,9 @@
local news = {
'10/9/20',
'Armor in space should work properly now!!!',
'Added ring and amulet recipes to show how to make the items with perks.',
'All armors are displayed in spawn.',
'',
'10/7/20',
'Lifeforce potions can be put in vessel shevles.',
'Amulets can be crafted in the jewelry workshop.',

View File

@ -10,7 +10,7 @@ local jewelry_formspec =
'list[current_name;relics;1,3;6,1;]'..
'list[current_player;main;0,4.5;8,4;]'..
'button[5.75,1.55;1.5,.75;forge;Forge]'..
'textarea[.5,1;5.5,2.25;;;Currently only rings are working!\n'..
'textarea[.5,1;5.5,2.25;;;Currently gloves aren\'t working!\n'..
'Input a plain ring, amulet or pair of gloves, and a Gemstone with the perk you want added.'..
'\nYou\'ll also need a mese crystal and lava orb.'..
'\nRelics can be added to tweak the chances that control how powerful the outputted item will be.'..
@ -385,3 +385,11 @@ minetest.register_node('stations:jewelry_locked', {
return false
end,
})
unified_inventory.register_craft_type("jewelry", {
description = "Jewelry Workshop",
icon = 'stations_jewelry_icon.png',
width = 4,
height = 1,
uses_crafting_grid = false
})

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB