add water

This commit is contained in:
Xeno333 2024-08-05 12:19:02 -05:00
parent d3a8b28d7b
commit cf26430b38
28 changed files with 228 additions and 4 deletions

View File

@ -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")

View File

@ -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,
})

View 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,
})

View File

@ -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},
})

Binary file not shown.

BIN
textures/arcanetools.zip Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 1002 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

View 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'},
}
})

View File

@ -0,0 +1,5 @@
name = arcanetools
description = Tools, armors and mineral for the end.
author = Bapt-tech
license : CC-BY-SA 4.0

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 829 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 776 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 B

BIN
textures/ender_water.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB