add water
10
init.lua
@ -3,7 +3,11 @@ mcl_better_end = {}
|
||||
mcl_better_end.code_loc = minetest.get_modpath("mcl_better_end") .. "/src"
|
||||
|
||||
|
||||
dofile(mcl_better_end.code_loc .. "/mapgen/biome_plains.lua")
|
||||
dofile(mcl_better_end.code_loc .. "/nodes/nodes_plains.lua")
|
||||
|
||||
dofile(mcl_better_end.code_loc .. "/enderite/ore.lua")
|
||||
dofile(mcl_better_end.code_loc .. "/nodes/nodes_plains.lua")
|
||||
dofile(mcl_better_end.code_loc .. "/nodes/nodes_ender_sea.lua")
|
||||
|
||||
dofile(mcl_better_end.code_loc .. "/enderite/ore.lua")
|
||||
|
||||
|
||||
dofile(mcl_better_end.code_loc .. "/mapgen/biome_plains.lua")
|
||||
|
@ -9,6 +9,20 @@ minetest.register_node("mcl_better_end:enderite_ore", {
|
||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||
_mcl_blast_resistance = 1200,
|
||||
_mcl_hardness = 70,
|
||||
light_source = 10, -- This makes the block emit light
|
||||
|
||||
groups = {pickaxey=7, building_block=1, material_stone=1, mbe_plains=1},
|
||||
})
|
||||
|
||||
|
||||
--need new mapgen code
|
||||
minetest.register_ore({
|
||||
ore_type = "scatter",
|
||||
ore = "mcl_better_end:enderite_ore",
|
||||
wherein = "air",
|
||||
clust_scarcity = 327680,
|
||||
clust_num_ores = 1,
|
||||
clust_size = 1,
|
||||
y_max = -27020,
|
||||
y_min = -27060,
|
||||
})
|
52
src/nodes/nodes_ender_sea.lua
Normal file
@ -0,0 +1,52 @@
|
||||
minetest.register_node("mcl_better_end:ender_water", {
|
||||
description = "Ender Water",
|
||||
|
||||
drawtype = "liquid",
|
||||
paramtype = "light",
|
||||
liquidtype = "source",
|
||||
use_texture_alpha = "blend",
|
||||
drop = "",
|
||||
post_effect_color = {a = 64, r = 100, g = 100, b = 200},
|
||||
|
||||
tiles = {{
|
||||
name = "ender_water.png",
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 32,
|
||||
aspect_h = 32,
|
||||
length = 3,
|
||||
},
|
||||
}, },
|
||||
special_tiles = { {
|
||||
name = "ender_water.png",
|
||||
animation = {
|
||||
type = "vertical_frames",
|
||||
aspect_w = 32,
|
||||
aspect_h = 32,
|
||||
length = 3,
|
||||
},
|
||||
backface_culling = false,
|
||||
}, },
|
||||
|
||||
liquid_alternative_flowing = "mcl_better_end:ender_water",
|
||||
liquid_alternative_source = "mcl_better_end:ender_water",
|
||||
|
||||
drowning = 0,
|
||||
liquid_range = 0,
|
||||
|
||||
sounds = mcl_sounds.node_sound_water_defaults(),
|
||||
|
||||
liquid_renewable = false,
|
||||
is_ground_content = false,
|
||||
walkable = false,
|
||||
pointable = false,
|
||||
diggable = false,
|
||||
buildable_to = true,
|
||||
light_source = 4, -- This makes the block emit light
|
||||
|
||||
liquid_viscosity = 2,
|
||||
groups = { water=3, liquid=3, puts_out_fire=1, not_in_creative_inventory=1, melt_around=1, dig_by_piston=1, mbe_ender_sea=1},
|
||||
_mcl_blast_resistance = 100,
|
||||
_mcl_hardness = -1,
|
||||
|
||||
})
|
@ -9,12 +9,13 @@ minetest.register_node("mcl_better_end:end_stone_plains_turf", {
|
||||
"mcl_end_end_stone.png^end_stone_plains_turf_side.png", -- Side texture 4
|
||||
},
|
||||
stack_max = 64,
|
||||
|
||||
|
||||
drop = "mcl_end:end_stone",
|
||||
sounds = mcl_sounds.node_sound_stone_defaults(),
|
||||
|
||||
_mcl_blast_resistance = 9,
|
||||
_mcl_hardness = 3,
|
||||
light_source = 4,
|
||||
|
||||
groups = {pickaxey=1, building_block=1, material_stone=1, mbe_plains=1},
|
||||
})
|
||||
|
BIN
textures.zip
BIN
textures/arcanetools.zip
Normal file
BIN
textures/arcanetools/end/cristal_pick.png
Normal file
After Width: | Height: | Size: 1002 B |
BIN
textures/arcanetools/end/end_cristal.png
Normal file
After Width: | Height: | Size: 1.2 KiB |
BIN
textures/arcanetools/end/end_grass_bottom.png
Executable file
After Width: | Height: | Size: 1.3 KiB |
BIN
textures/arcanetools/end/end_grass_side.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
textures/arcanetools/end/end_grass_top.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
textures/arcanetools/end/end_stone_with_end_cristal.png
Executable file
After Width: | Height: | Size: 5.7 KiB |
148
textures/arcanetools/init.lua
Normal file
@ -0,0 +1,148 @@
|
||||
-- Enregistrement du minerai Nephrite
|
||||
minetest.register_node("arcanetools:nephrite_ore", {
|
||||
description = "Nephrite Ore",
|
||||
tiles = {"end_stone_with_nephrite.png"},
|
||||
is_ground_content = true,
|
||||
groups = {cracky = 3},
|
||||
drop = 'arcanetools:nephrite_raw', -- Le minerai laisse tomber un morceau brut
|
||||
})
|
||||
-- Enregistrement du minerai brut
|
||||
minetest.register_craftitem("arcanetools:nephrite_raw", {
|
||||
description = "Raw Nephrite",
|
||||
inventory_image = "nephrite_raw.png",
|
||||
})
|
||||
|
||||
-- Enregistrement du lingot
|
||||
minetest.register_craftitem("arcanetools:nephrite_ingot", {
|
||||
description = "Nephrite Ingot",
|
||||
inventory_image = "nephrite_ore.png",
|
||||
})
|
||||
|
||||
-- Recette de cuisson pour obtenir le lingot
|
||||
minetest.register_craft({
|
||||
type = "cooking",
|
||||
output = "arcanetools:nephrite_ingot",
|
||||
recipe = "arcanetools:nephrite_raw",
|
||||
cooktime = 1,
|
||||
})
|
||||
|
||||
-- Outils
|
||||
minetest.register_tool("arcanetools:nephrite_pickaxe", {
|
||||
description = "Nephrite Pickaxe",
|
||||
inventory_image = "nephrite_pick.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
max_drop_level = 1,
|
||||
groupcaps = {
|
||||
cracky = {times={[1]=0.1, [2]=0.1, [3]=0.1}, uses=300, maxlevel=20},
|
||||
},
|
||||
damage_groups = {fleshy=40},
|
||||
},
|
||||
})
|
||||
|
||||
minetest.register_tool("arcanetools:nephrite_axe", {
|
||||
description = "Nephrite Axe",
|
||||
inventory_image = "nephrite_axe.png",
|
||||
tool_capabilities = {
|
||||
full_punch_interval = 1.0,
|
||||
max_drop_level = 1,
|
||||
groupcaps = {
|
||||
choppy = {times={[1]=0.1, [2]=0.1, [3]=0.1}, uses=30, maxlevel=20},
|
||||
},
|
||||
damage_groups = {fleshy=4},
|
||||
},
|
||||
})
|
||||
|
||||
-- Recettes pour les outils
|
||||
minetest.register_craft({
|
||||
output = 'arcanetools:nephrite_pickaxe',
|
||||
recipe = {
|
||||
{'arcanetools:nephrite_ingot', 'arcanetools:nephrite_ingot', 'arcanetools:nephrite_ingot'},
|
||||
{'', 'mcl_core:stick', ''},
|
||||
{'', 'mcl_core:stick', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'arcanetools:nephrite_axe',
|
||||
recipe = {
|
||||
{'', 'arcanetools:nephrite_ingot', 'arcanetools:nephrite_ingot'},
|
||||
{'', 'mcl_core:stick', 'arcanetools:nephrite_ingot'},
|
||||
{'', 'mcl_core:stick', ''},
|
||||
}
|
||||
})
|
||||
|
||||
-- Armures
|
||||
minetest.register_tool("arcanetools:nephrite_helmet", {
|
||||
description = "Nephrite Helmet",
|
||||
inventory_image = "nephrite_helmet.png",
|
||||
groups = {armor_head=1, armor_heal=12, armor_use=100, armor_fire=10},
|
||||
armor_groups = {fleshy=20},
|
||||
wear = 0,
|
||||
damage_groups = {cracky=2, snappy=1, level=3},
|
||||
})
|
||||
|
||||
minetest.register_tool("arcanetools:nephrite_chestplate", {
|
||||
description = "Nephrite Chestplate",
|
||||
inventory_image = "nephrite_chestplate.png",
|
||||
groups = {armor_torso=1, armor_heal=12, armor_use=100, armor_fire=10},
|
||||
armor_groups = {fleshy=20},
|
||||
wear = 0,
|
||||
damage_groups = {cracky=2, snappy=1, level=3},
|
||||
})
|
||||
|
||||
minetest.register_tool("arcanetools:nephrite_leggings", {
|
||||
description = "Nephrite Leggings",
|
||||
inventory_image = "nephrite_leggings.png",
|
||||
groups = {armor_legs=1, armor_heal=12, armor_use=100, armor_fire=10},
|
||||
armor_groups = {fleshy=20},
|
||||
wear = 0,
|
||||
damage_groups = {cracky=2, snappy=1, level=3},
|
||||
})
|
||||
|
||||
minetest.register_tool("arcanetools:nephrite_boots", {
|
||||
description = "Nephrite Boots",
|
||||
inventory_image = "nephrite_boots.png",
|
||||
groups = {armor_feet=1, armor_heal=12, armor_use=100, armor_fire=10},
|
||||
armor_groups = {fleshy=20},
|
||||
wear = 0,
|
||||
damage_groups = {cracky=2, snappy=1, level=3},
|
||||
})
|
||||
|
||||
-- Recettes pour les armures
|
||||
minetest.register_craft({
|
||||
output = 'arcanetools:nephrite_helmet',
|
||||
recipe = {
|
||||
{'arcanetools:nephrite_ingot', 'arcanetools:nephrite_ingot', 'arcanetools:nephrite_ingot'},
|
||||
{'arcanetools:nephrite_ingot', '', 'arcanetools:nephrite_ingot'},
|
||||
{'', '', ''},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'arcanetools:nephrite_chestplate',
|
||||
recipe = {
|
||||
{'arcanetools:nephrite_ingot', '', 'arcanetools:nephrite_ingot'},
|
||||
{'arcanetools:nephrite_ingot', 'arcanetools:nephrite_ingot', 'arcanetools:nephrite_ingot'},
|
||||
{'arcanetools:nephrite_ingot', 'arcanetools:nephrite_ingot', 'arcanetools:nephrite_ingot'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'arcanetools:nephrite_leggings',
|
||||
recipe = {
|
||||
{'arcanetools:nephrite_ingot', 'arcanetools:nephrite_ingot', 'arcanetools:nephrite_ingot'},
|
||||
{'arcanetools:nephrite_ingot', '', 'arcanetools:nephrite_ingot'},
|
||||
{'arcanetools:nephrite_ingot', '', 'arcanetools:nephrite_ingot'},
|
||||
}
|
||||
})
|
||||
|
||||
minetest.register_craft({
|
||||
output = 'arcanetools:nephrite_boots',
|
||||
recipe = {
|
||||
{'', '', ''},
|
||||
{'arcanetools:nephrite_ingot', '', 'arcanetools:nephrite_ingot'},
|
||||
{'arcanetools:nephrite_ingot', '', 'arcanetools:nephrite_ingot'},
|
||||
}
|
||||
})
|
||||
|
5
textures/arcanetools/mod.conf
Normal file
@ -0,0 +1,5 @@
|
||||
name = arcanetools
|
||||
description = Tools, armors and mineral for the end.
|
||||
author = Bapt-tech
|
||||
license : CC-BY-SA 4.0
|
||||
|
BIN
textures/arcanetools/textures/Sans titre.png
Normal file
After Width: | Height: | Size: 837 B |
BIN
textures/arcanetools/textures/end_grass_bottom.png
Executable file
After Width: | Height: | Size: 1.3 KiB |
BIN
textures/arcanetools/textures/end_grass_side.png
Normal file
After Width: | Height: | Size: 5.5 KiB |
BIN
textures/arcanetools/textures/end_grass_top.png
Normal file
After Width: | Height: | Size: 1.3 KiB |
BIN
textures/arcanetools/textures/end_stone_with_nephrite.png
Executable file
After Width: | Height: | Size: 5.7 KiB |
BIN
textures/arcanetools/textures/nephrite_axe.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
textures/arcanetools/textures/nephrite_boots.png
Normal file
After Width: | Height: | Size: 763 B |
BIN
textures/arcanetools/textures/nephrite_chestplate.png
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
textures/arcanetools/textures/nephrite_helmet.png
Normal file
After Width: | Height: | Size: 829 B |
BIN
textures/arcanetools/textures/nephrite_leggings.png
Normal file
After Width: | Height: | Size: 776 B |
BIN
textures/arcanetools/textures/nephrite_ore.png
Normal file
After Width: | Height: | Size: 4.7 KiB |
BIN
textures/arcanetools/textures/nephrite_pick.png
Normal file
After Width: | Height: | Size: 5.0 KiB |
BIN
textures/arcanetools/textures/nephrite_raw.png
Normal file
After Width: | Height: | Size: 825 B |
BIN
textures/ender_water.png
Executable file
After Width: | Height: | Size: 9.7 KiB |