Compare commits
5 Commits
0953523933
...
cd82a94329
Author | SHA1 | Date |
---|---|---|
ROllerozxa | cd82a94329 | |
ROllerozxa | 8630c5fcb5 | |
ROllerozxa | bf1d217667 | |
ROllerozxa | e760c9ccd0 | |
ROllerozxa | 73b99aed89 |
|
@ -1,3 +1,5 @@
|
||||||
|
# Minecraftn't is no longer in active development. For a better and more actively developed recreation of Minecraft Alpha in Minetest, please see [Mineclone Alpha](https://github.com/rollerozxa/mineclone-alpha).
|
||||||
|
|
||||||
<p align="center"><img width=600 src="https://raw.githubusercontent.com/danil275487/minecraftnt/main/menu/header.png"></p>
|
<p align="center"><img width=600 src="https://raw.githubusercontent.com/danil275487/minecraftnt/main/menu/header.png"></p>
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
|
@ -28,11 +28,10 @@ def main():
|
||||||
step_sounds = [ 'cloth', 'grass', 'gravel', 'sand', 'snow', 'stone', 'wood' ]
|
step_sounds = [ 'cloth', 'grass', 'gravel', 'sand', 'snow', 'stone', 'wood' ]
|
||||||
for step_sound in step_sounds:
|
for step_sound in step_sounds:
|
||||||
for i in range(1,5):
|
for i in range(1,5):
|
||||||
check_sound_and_download("https://betacraft.pl/MinecraftResources/newsound/step/%s%s.ogg" % (step_sound, i), Path("mods/minecraft/sounds/%s.%s.ogg" % (step_sound, i)))
|
check_sound_and_download("https://betacraft.pl/MinecraftResources/newsound/step/%s%s.ogg" % (step_sound, i), Path("mods/mcnt_core/sounds/%s.%s.ogg" % (step_sound, i)))
|
||||||
|
|
||||||
# item pickup sound
|
# item pickup sound
|
||||||
check_sound_and_download("https://betacraft.pl/MinecraftResources/newsound/random/pop.ogg", Path("mods/mcnt_itemdrop/sounds/pop.ogg"))
|
check_sound_and_download("https://betacraft.pl/MinecraftResources/newsound/random/pop.ogg", Path("mods/mcnt_itemdrop/sounds/pop.ogg"))
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
MIT License
|
|
||||||
|
|
||||||
Copyright (c) 2020 LoneWolfHT
|
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
||||||
of this software and associated documentation files (the "Software"), to deal
|
|
||||||
in the Software without restriction, including without limitation the rights
|
|
||||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
||||||
copies of the Software, and to permit persons to whom the Software is
|
|
||||||
furnished to do so, subject to the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be included in all
|
|
||||||
copies or substantial portions of the Software.
|
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
||||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
||||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
||||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
||||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
||||||
SOFTWARE.
|
|
|
@ -1,7 +0,0 @@
|
||||||
# Headanim
|
|
||||||
[![ContentDB](https://content.minetest.net/packages/Lone_Wolf/headanim/shields/downloads/)](https://content.minetest.net/packages/Lone_Wolf/headanim/)
|
|
||||||
|
|
||||||
Makes player heads follow their look dir in Minetest. Requires version 5.3+
|
|
||||||
|
|
||||||
## Similar mods
|
|
||||||
* https://github.com/minetest-mods/playeranim: A lot more complex (and possibly slower?) than Headanim but looks nicer as a result
|
|
|
@ -1,5 +0,0 @@
|
||||||
minetest.register_globalstep(function(dtime)
|
|
||||||
for _, player in pairs(minetest.get_connected_players()) do
|
|
||||||
player:set_bone_position("Head", vector.new(0, 6.35, 0), vector.new(-math.deg(player:get_look_vertical()), 0, 0))
|
|
||||||
end
|
|
||||||
end)
|
|
|
@ -1,5 +0,0 @@
|
||||||
name = headanim
|
|
||||||
description = Makes player heads follow their look direction
|
|
||||||
release = 6116
|
|
||||||
author = Lone_Wolf
|
|
||||||
title = Headanim
|
|
|
@ -1 +0,0 @@
|
||||||
name = inventory
|
|
|
@ -140,7 +140,7 @@ local function close_forms(pos)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_node(small_name, {
|
minetest.register_node(":"..small_name, {
|
||||||
description = "Chest",
|
description = "Chest",
|
||||||
tiles = {
|
tiles = {
|
||||||
terrain(25),
|
terrain(25),
|
||||||
|
@ -248,7 +248,7 @@ minetest.register_node(small_name, {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node(left_name, {
|
minetest.register_node(":"..left_name, {
|
||||||
tiles = {
|
tiles = {
|
||||||
terrain(25),
|
terrain(25),
|
||||||
terrain(25),
|
terrain(25),
|
||||||
|
@ -365,7 +365,7 @@ minetest.register_node(left_name, {
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node(right_name, {
|
minetest.register_node(":"..right_name, {
|
||||||
tiles = {
|
tiles = {
|
||||||
terrain(25),
|
terrain(25),
|
||||||
terrain(25),
|
terrain(25),
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
minetest.register_node("minecraft:stone", {
|
minetest.register_node(":minecraft:stone", {
|
||||||
description = "Stone",
|
description = "Stone",
|
||||||
tiles = { terrain(1) },
|
tiles = { terrain(1) },
|
||||||
groups = { cracky = 3 },
|
groups = { cracky = 3 },
|
||||||
|
@ -6,7 +6,7 @@ minetest.register_node("minecraft:stone", {
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:grass", {
|
minetest.register_node(":minecraft:grass", {
|
||||||
description = "Grass",
|
description = "Grass",
|
||||||
drop = "minecraft:dirt",
|
drop = "minecraft:dirt",
|
||||||
tiles = {
|
tiles = {
|
||||||
|
@ -18,14 +18,14 @@ minetest.register_node("minecraft:grass", {
|
||||||
sounds = block_sound('grass'),
|
sounds = block_sound('grass'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:dirt", {
|
minetest.register_node(":minecraft:dirt", {
|
||||||
description = "Dirt",
|
description = "Dirt",
|
||||||
tiles = { terrain(2) },
|
tiles = { terrain(2) },
|
||||||
groups = { crumbly = 3, soil = 1, cultivatable = 1 },
|
groups = { crumbly = 3, soil = 1, cultivatable = 1 },
|
||||||
sounds = block_sound('gravel'),
|
sounds = block_sound('gravel'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:oak", {
|
minetest.register_node(":minecraft:oak", {
|
||||||
description = "Wood",
|
description = "Wood",
|
||||||
tiles = {
|
tiles = {
|
||||||
terrain(21),
|
terrain(21),
|
||||||
|
@ -37,7 +37,7 @@ minetest.register_node("minecraft:oak", {
|
||||||
sounds = block_sound('wood'),
|
sounds = block_sound('wood'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:leaves", {
|
minetest.register_node(":minecraft:leaves", {
|
||||||
description = "Leaves",
|
description = "Leaves",
|
||||||
drawtype = "allfaces_optional",
|
drawtype = "allfaces_optional",
|
||||||
tiles = { terrain(52) },
|
tiles = { terrain(52) },
|
||||||
|
@ -57,7 +57,7 @@ minetest.register_node("minecraft:leaves", {
|
||||||
sounds = block_sound('grass'),
|
sounds = block_sound('grass'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:plank", {
|
minetest.register_node(":minecraft:plank", {
|
||||||
description = "Wooden Planks",
|
description = "Wooden Planks",
|
||||||
tiles = { terrain(4) },
|
tiles = { terrain(4) },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
@ -65,7 +65,7 @@ minetest.register_node("minecraft:plank", {
|
||||||
sounds = block_sound('wood'),
|
sounds = block_sound('wood'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:glass", {
|
minetest.register_node(":minecraft:glass", {
|
||||||
description = "Glass",
|
description = "Glass",
|
||||||
drawtype = "glasslike_framed_optional",
|
drawtype = "glasslike_framed_optional",
|
||||||
drop = "",
|
drop = "",
|
||||||
|
@ -77,21 +77,21 @@ minetest.register_node("minecraft:glass", {
|
||||||
sounds = block_sound('glass'),
|
sounds = block_sound('glass'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:sand", {
|
minetest.register_node(":minecraft:sand", {
|
||||||
description = "Sand",
|
description = "Sand",
|
||||||
tiles = { terrain(18) },
|
tiles = { terrain(18) },
|
||||||
groups = { falling_node = 1, crumbly = 3 },
|
groups = { falling_node = 1, crumbly = 3 },
|
||||||
sounds = block_sound('sand'),
|
sounds = block_sound('sand'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:gravel", {
|
minetest.register_node(":minecraft:gravel", {
|
||||||
description = "Gravel",
|
description = "Gravel",
|
||||||
tiles = { terrain(19) },
|
tiles = { terrain(19) },
|
||||||
groups = {falling_node=1,crumbly=3},
|
groups = {falling_node=1,crumbly=3},
|
||||||
sounds = block_sound('gravel'),
|
sounds = block_sound('gravel'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:cobble", {
|
minetest.register_node(":minecraft:cobble", {
|
||||||
description = "Cobblestone",
|
description = "Cobblestone",
|
||||||
tiles = { terrain(16) },
|
tiles = { terrain(16) },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
@ -99,7 +99,7 @@ minetest.register_node("minecraft:cobble", {
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:mossycobble", {
|
minetest.register_node(":minecraft:mossycobble", {
|
||||||
description = "Moss Stone",
|
description = "Moss Stone",
|
||||||
tiles = { terrain(36) },
|
tiles = { terrain(36) },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
@ -107,7 +107,7 @@ minetest.register_node("minecraft:mossycobble", {
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:bedrock", {
|
minetest.register_node(":minecraft:bedrock", {
|
||||||
description = "Bedrock",
|
description = "Bedrock",
|
||||||
tiles = { terrain(17) },
|
tiles = { terrain(17) },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
@ -115,7 +115,7 @@ minetest.register_node("minecraft:bedrock", {
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:bricks", {
|
minetest.register_node(":minecraft:bricks", {
|
||||||
description = "Bricks",
|
description = "Bricks",
|
||||||
tiles = { terrain(7) },
|
tiles = { terrain(7) },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
@ -123,7 +123,7 @@ minetest.register_node("minecraft:bricks", {
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:bookshelf", {
|
minetest.register_node(":minecraft:bookshelf", {
|
||||||
description = "Bookshelf",
|
description = "Bookshelf",
|
||||||
tiles = {
|
tiles = {
|
||||||
terrain(4),
|
terrain(4),
|
||||||
|
@ -135,7 +135,7 @@ minetest.register_node("minecraft:bookshelf", {
|
||||||
sounds = block_sound('wood'),
|
sounds = block_sound('wood'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:coal_ore", {
|
minetest.register_node(":minecraft:coal_ore", {
|
||||||
description = "Coal Ore",
|
description = "Coal Ore",
|
||||||
drop = "minecraft:coal",
|
drop = "minecraft:coal",
|
||||||
tiles = { terrain(34) },
|
tiles = { terrain(34) },
|
||||||
|
@ -143,21 +143,21 @@ minetest.register_node("minecraft:coal_ore", {
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:iron_ore", {
|
minetest.register_node(":minecraft:iron_ore", {
|
||||||
description = "Iron Ore",
|
description = "Iron Ore",
|
||||||
tiles = { terrain(33) },
|
tiles = { terrain(33) },
|
||||||
groups = { cracky = 2, level = 1 },
|
groups = { cracky = 2, level = 1 },
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:gold_ore", {
|
minetest.register_node(":minecraft:gold_ore", {
|
||||||
description = "Gold Ore",
|
description = "Gold Ore",
|
||||||
tiles = { terrain(32) },
|
tiles = { terrain(32) },
|
||||||
groups = { cracky = 2, level = 1 },
|
groups = { cracky = 2, level = 1 },
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:diamond_ore", {
|
minetest.register_node(":minecraft:diamond_ore", {
|
||||||
description = "Diamond Ore",
|
description = "Diamond Ore",
|
||||||
drop = "minecraft:diamond",
|
drop = "minecraft:diamond",
|
||||||
tiles = { terrain(50) },
|
tiles = { terrain(50) },
|
||||||
|
@ -165,7 +165,7 @@ minetest.register_node("minecraft:diamond_ore", {
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:plank_stairs", {
|
minetest.register_node(":minecraft:plank_stairs", {
|
||||||
description = "Wooden Stairs",
|
description = "Wooden Stairs",
|
||||||
tiles = { terrain(4) },
|
tiles = { terrain(4) },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
@ -183,7 +183,7 @@ minetest.register_node("minecraft:plank_stairs", {
|
||||||
sounds = block_sound('wood'),
|
sounds = block_sound('wood'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:cobble_stairs", {
|
minetest.register_node(":minecraft:cobble_stairs", {
|
||||||
description = "Stone Stairs",
|
description = "Stone Stairs",
|
||||||
tiles = { terrain(16) },
|
tiles = { terrain(16) },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
@ -201,7 +201,7 @@ minetest.register_node("minecraft:cobble_stairs", {
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:plank_slab", {
|
minetest.register_node(":minecraft:plank_slab", {
|
||||||
description = "Wooden Slab",
|
description = "Wooden Slab",
|
||||||
tiles = { terrain(4) },
|
tiles = { terrain(4) },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
@ -217,7 +217,7 @@ minetest.register_node("minecraft:plank_slab", {
|
||||||
sounds = block_sound('wood'),
|
sounds = block_sound('wood'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:cobble_slab", {
|
minetest.register_node(":minecraft:cobble_slab", {
|
||||||
description = "Stone Slab",
|
description = "Stone Slab",
|
||||||
tiles = { terrain(16) },
|
tiles = { terrain(16) },
|
||||||
is_ground_content = false,
|
is_ground_content = false,
|
||||||
|
@ -233,7 +233,7 @@ minetest.register_node("minecraft:cobble_slab", {
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:stone_slab", {
|
minetest.register_node(":minecraft:stone_slab", {
|
||||||
description = "Stone Slab",
|
description = "Stone Slab",
|
||||||
tiles = {
|
tiles = {
|
||||||
terrain(6),
|
terrain(6),
|
||||||
|
@ -256,7 +256,7 @@ minetest.register_node("minecraft:stone_slab", {
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:stone_slab_block", {
|
minetest.register_node(":minecraft:stone_slab_block", {
|
||||||
description = "tile.stoneSlab",
|
description = "tile.stoneSlab",
|
||||||
drop = "minecraft:stone_slab",
|
drop = "minecraft:stone_slab",
|
||||||
tiles = {
|
tiles = {
|
||||||
|
@ -272,7 +272,7 @@ minetest.register_node("minecraft:stone_slab_block", {
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:iron_block", {
|
minetest.register_node(":minecraft:iron_block", {
|
||||||
description = "Block of Iron",
|
description = "Block of Iron",
|
||||||
tiles = {
|
tiles = {
|
||||||
terrain(22),
|
terrain(22),
|
||||||
|
@ -286,7 +286,7 @@ minetest.register_node("minecraft:iron_block", {
|
||||||
sounds = block_sound('metal'),
|
sounds = block_sound('metal'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:gold_block", {
|
minetest.register_node(":minecraft:gold_block", {
|
||||||
description = "Block of Gold",
|
description = "Block of Gold",
|
||||||
tiles = {
|
tiles = {
|
||||||
terrain(23),
|
terrain(23),
|
||||||
|
@ -300,7 +300,7 @@ minetest.register_node("minecraft:gold_block", {
|
||||||
sounds = block_sound('metal'),
|
sounds = block_sound('metal'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:diamond_block", {
|
minetest.register_node(":minecraft:diamond_block", {
|
||||||
description = "Block of Diamond",
|
description = "Block of Diamond",
|
||||||
tiles = {
|
tiles = {
|
||||||
terrain(24),
|
terrain(24),
|
||||||
|
@ -314,7 +314,7 @@ minetest.register_node("minecraft:diamond_block", {
|
||||||
sounds = block_sound('metal'),
|
sounds = block_sound('metal'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:crafting_table", {
|
minetest.register_node(":minecraft:crafting_table", {
|
||||||
description = "Crafting Table",
|
description = "Crafting Table",
|
||||||
tiles = {
|
tiles = {
|
||||||
terrain(43),
|
terrain(43),
|
||||||
|
@ -349,14 +349,14 @@ minetest.register_node("minecraft:crafting_table", {
|
||||||
sounds = block_sound('wood'),
|
sounds = block_sound('wood'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:obsidian", {
|
minetest.register_node(":minecraft:obsidian", {
|
||||||
description = "Obsidian",
|
description = "Obsidian",
|
||||||
tiles = { terrain(37) },
|
tiles = { terrain(37) },
|
||||||
groups = { cracky = 1, level = 3 },
|
groups = { cracky = 1, level = 3 },
|
||||||
sounds = block_sound('stone'),
|
sounds = block_sound('stone'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:tnt", {
|
minetest.register_node(":minecraft:tnt", {
|
||||||
description = "TNT",
|
description = "TNT",
|
||||||
tiles = {
|
tiles = {
|
||||||
terrain(9),
|
terrain(9),
|
||||||
|
@ -368,7 +368,7 @@ minetest.register_node("minecraft:tnt", {
|
||||||
sounds = block_sound('grass'),
|
sounds = block_sound('grass'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:flower", {
|
minetest.register_node(":minecraft:flower", {
|
||||||
description = "Flower",
|
description = "Flower",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
@ -381,7 +381,7 @@ minetest.register_node("minecraft:flower", {
|
||||||
sounds = block_sound('grass'),
|
sounds = block_sound('grass'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:rose", {
|
minetest.register_node(":minecraft:rose", {
|
||||||
description = "Rose",
|
description = "Rose",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
@ -394,7 +394,7 @@ minetest.register_node("minecraft:rose", {
|
||||||
sounds = block_sound('grass'),
|
sounds = block_sound('grass'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:mushroom", {
|
minetest.register_node(":minecraft:mushroom", {
|
||||||
description = "Mushroom",
|
description = "Mushroom",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
@ -407,7 +407,7 @@ minetest.register_node("minecraft:mushroom", {
|
||||||
sounds = block_sound('grass'),
|
sounds = block_sound('grass'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:mushroom2", {
|
minetest.register_node(":minecraft:mushroom2", {
|
||||||
description = "Mushroom",
|
description = "Mushroom",
|
||||||
drawtype = "plantlike",
|
drawtype = "plantlike",
|
||||||
paramtype = "light",
|
paramtype = "light",
|
||||||
|
@ -420,14 +420,14 @@ minetest.register_node("minecraft:mushroom2", {
|
||||||
sounds = block_sound('grass'),
|
sounds = block_sound('grass'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:wool", {
|
minetest.register_node(":minecraft:wool", {
|
||||||
description = "Wool",
|
description = "Wool",
|
||||||
tiles = { terrain(64) },
|
tiles = { terrain(64) },
|
||||||
groups = { snappy = 1, choppy = 2, oddly_breakable_by_hand = 3 },
|
groups = { snappy = 1, choppy = 2, oddly_breakable_by_hand = 3 },
|
||||||
sounds = block_sound('cloth'),
|
sounds = block_sound('cloth'),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_node("minecraft:spawner", {
|
minetest.register_node(":minecraft:spawner", {
|
||||||
description = "Mob Spawner",
|
description = "Mob Spawner",
|
||||||
drawtype = "allfaces",
|
drawtype = "allfaces",
|
||||||
tiles = { terrain(65) },
|
tiles = { terrain(65) },
|
|
@ -1,12 +1,14 @@
|
||||||
dofile(minetest.get_modpath("minecraft") .. "/sounds.lua")
|
dofile(minetest.get_modpath("mcnt_core") .. "/sounds.lua")
|
||||||
dofile(minetest.get_modpath("minecraft") .. "/helpers.lua")
|
dofile(minetest.get_modpath("mcnt_core") .. "/helpers.lua")
|
||||||
|
|
||||||
dofile(minetest.get_modpath("minecraft") .. "/blocks.lua")
|
dofile(minetest.get_modpath("mcnt_core") .. "/blocks.lua")
|
||||||
|
|
||||||
dofile(minetest.get_modpath("minecraft") .. "/items.lua")
|
dofile(minetest.get_modpath("mcnt_core") .. "/items.lua")
|
||||||
dofile(minetest.get_modpath("minecraft") .. "/mapgen.lua")
|
dofile(minetest.get_modpath("mcnt_core") .. "/recipes.lua")
|
||||||
dofile(minetest.get_modpath("minecraft") .. "/recipes.lua")
|
|
||||||
|
|
||||||
|
minetest.register_alias("mapgen_stone", "minecraft:stone")
|
||||||
|
minetest.register_alias("mapgen_water_source", "minecraft:water_source")
|
||||||
|
minetest.register_alias("mapgen_river_water_source", "minecraft:water_source")
|
||||||
|
|
||||||
-- devs drop apples on death!
|
-- devs drop apples on death!
|
||||||
minetest.register_on_dieplayer(function(entity, reason)
|
minetest.register_on_dieplayer(function(entity, reason)
|
||||||
|
@ -29,7 +31,6 @@ minetest.register_on_placenode(function(pos, newnode, placer, oldnode, itemstack
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Hotbar texture
|
-- Hotbar texture
|
||||||
|
|
||||||
minetest.register_on_joinplayer(function(player)
|
minetest.register_on_joinplayer(function(player)
|
||||||
player:hud_set_hotbar_image("gui_hotbar.png")
|
player:hud_set_hotbar_image("gui_hotbar.png")
|
||||||
player:hud_set_hotbar_selected_image("gui_hotbar_selected.png")
|
player:hud_set_hotbar_selected_image("gui_hotbar_selected.png")
|
||||||
|
@ -46,3 +47,10 @@ minetest.item_drop = function(itemstack, dropper, pos)
|
||||||
old_drop(itemstack:take_item(1), dropper, pos)
|
old_drop(itemstack:take_item(1), dropper, pos)
|
||||||
return itemstack
|
return itemstack
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- Head animation cool
|
||||||
|
minetest.register_globalstep(function(dtime)
|
||||||
|
for _, player in pairs(minetest.get_connected_players()) do
|
||||||
|
player:set_bone_position("Head", vector.new(0, 6.35, 0), vector.new(-math.deg(player:get_look_vertical()), 0, 0))
|
||||||
|
end
|
||||||
|
end)
|
|
@ -42,27 +42,27 @@ else
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:flint_and_steel", {
|
minetest.register_craftitem(":minecraft:flint_and_steel", {
|
||||||
description = "Flint and Steel",
|
description = "Flint and Steel",
|
||||||
inventory_image = "items.png^[sheet:16x16:5,0"
|
inventory_image = "items.png^[sheet:16x16:5,0"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:flint", {
|
minetest.register_craftitem(":minecraft:flint", {
|
||||||
description = "Flint",
|
description = "Flint",
|
||||||
inventory_image = "items.png^[sheet:16x16:6,0"
|
inventory_image = "items.png^[sheet:16x16:6,0"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:coal", {
|
minetest.register_craftitem(":minecraft:coal", {
|
||||||
description = "Coal",
|
description = "Coal",
|
||||||
inventory_image = "items.png^[sheet:16x16:7,0"
|
inventory_image = "items.png^[sheet:16x16:7,0"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:string", {
|
minetest.register_craftitem(":minecraft:string", {
|
||||||
description = "String",
|
description = "String",
|
||||||
inventory_image = "items.png^[sheet:16x16:8,0"
|
inventory_image = "items.png^[sheet:16x16:8,0"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:seeds", {
|
minetest.register_craftitem(":minecraft:seeds", {
|
||||||
description = "Seeds",
|
description = "Seeds",
|
||||||
inventory_image = "items.png^[sheet:16x16:9,0",
|
inventory_image = "items.png^[sheet:16x16:9,0",
|
||||||
on_place = function(itemstack, placer, pointed_thing)
|
on_place = function(itemstack, placer, pointed_thing)
|
||||||
|
@ -70,119 +70,117 @@ minetest.register_craftitem("minecraft:seeds", {
|
||||||
end
|
end
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:apple", {
|
minetest.register_craftitem(":minecraft:apple", {
|
||||||
description = "Apple",
|
description = "Apple",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
inventory_image = "items.png^[sheet:16x16:10,0",
|
inventory_image = "items.png^[sheet:16x16:10,0",
|
||||||
on_use = minetest.item_eat(4),
|
on_use = minetest.item_eat(4),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:golden_apple", {
|
minetest.register_craftitem(":minecraft:golden_apple", {
|
||||||
description = "Golden Apple",
|
description = "Golden Apple",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
inventory_image = "items.png^[sheet:16x16:11,0",
|
inventory_image = "items.png^[sheet:16x16:11,0",
|
||||||
on_use = minetest.item_eat(20),
|
on_use = minetest.item_eat(20),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:bow", {
|
minetest.register_craftitem(":minecraft:bow", {
|
||||||
description = "Bow",
|
description = "Bow",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
inventory_image = "items.png^[sheet:16x16:5,1"
|
inventory_image = "items.png^[sheet:16x16:5,1"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:iron_ingot", {
|
minetest.register_craftitem(":minecraft:iron_ingot", {
|
||||||
description = "Iron Ingot",
|
description = "Iron Ingot",
|
||||||
inventory_image = "items.png^[sheet:16x16:7,1"
|
inventory_image = "items.png^[sheet:16x16:7,1"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:feather", {
|
minetest.register_craftitem(":minecraft:feather", {
|
||||||
description = "Feather",
|
description = "Feather",
|
||||||
inventory_image = "items.png^[sheet:16x16:8,1"
|
inventory_image = "items.png^[sheet:16x16:8,1"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:wheat", {
|
minetest.register_craftitem(":minecraft:wheat", {
|
||||||
description = "Wheat",
|
description = "Wheat",
|
||||||
inventory_image = "items.png^[sheet:16x16:9,1"
|
inventory_image = "items.png^[sheet:16x16:9,1"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:painting", {
|
minetest.register_craftitem(":minecraft:painting", {
|
||||||
description = "Painting",
|
description = "Painting",
|
||||||
inventory_image = "items.png^[sheet:16x16:10,1"
|
inventory_image = "items.png^[sheet:16x16:10,1"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:arrow", {
|
minetest.register_craftitem(":minecraft:arrow", {
|
||||||
description = "Arrow",
|
description = "Arrow",
|
||||||
inventory_image = "items.png^[sheet:16x16:5,2"
|
inventory_image = "items.png^[sheet:16x16:5,2"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:gold_ingot", {
|
minetest.register_craftitem(":minecraft:gold_ingot", {
|
||||||
description = "Gold Ingot",
|
description = "Gold Ingot",
|
||||||
inventory_image = "items.png^[sheet:16x16:7,2"
|
inventory_image = "items.png^[sheet:16x16:7,2"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:gunpowder", {
|
minetest.register_craftitem(":minecraft:gunpowder", {
|
||||||
description = "Gunpowder",
|
description = "Gunpowder",
|
||||||
inventory_image = "items.png^[sheet:16x16:8,2"
|
inventory_image = "items.png^[sheet:16x16:8,2"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:bread", {
|
minetest.register_craftitem(":minecraft:bread", {
|
||||||
description = "Bread",
|
description = "Bread",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
inventory_image = "items.png^[sheet:16x16:9,2",
|
inventory_image = "items.png^[sheet:16x16:9,2",
|
||||||
on_use = minetest.item_eat(5),
|
on_use = minetest.item_eat(5),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:sign", {
|
minetest.register_craftitem(":minecraft:sign", {
|
||||||
description = "Sign",
|
description = "Sign",
|
||||||
stack_max = 16,
|
stack_max = 16,
|
||||||
inventory_image = "items.png^[sheet:16x16:10,2"
|
inventory_image = "items.png^[sheet:16x16:10,2"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:stick", {
|
minetest.register_craftitem(":minecraft:stick", {
|
||||||
description = "Stick",
|
description = "Stick",
|
||||||
inventory_image = "items.png^[sheet:16x16:5,3"
|
inventory_image = "items.png^[sheet:16x16:5,3"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:diamond", {
|
minetest.register_craftitem(":minecraft:diamond", {
|
||||||
description = "Diamond",
|
description = "Diamond",
|
||||||
inventory_image = "items.png^[sheet:16x16:7,3",
|
inventory_image = "items.png^[sheet:16x16:7,3",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:bowl", {
|
minetest.register_craftitem(":minecraft:bowl", {
|
||||||
description = "Bowl",
|
description = "Bowl",
|
||||||
inventory_image = "items.png^[sheet:16x16:7,4"
|
inventory_image = "items.png^[sheet:16x16:7,4"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:mushroom_stew", {
|
minetest.register_craftitem(":minecraft:mushroom_stew", {
|
||||||
description = "Mushroom Stew",
|
description = "Mushroom Stew",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
inventory_image = "items.png^[sheet:16x16:8,4",
|
inventory_image = "items.png^[sheet:16x16:8,4",
|
||||||
on_use = minetest.item_eat(10, "minecraft:bowl"),
|
on_use = minetest.item_eat(10, "minecraft:bowl"),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:raw_porkchop", {
|
minetest.register_craftitem(":minecraft:raw_porkchop", {
|
||||||
description = "Raw Porkchop",
|
description = "Raw Porkchop",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
inventory_image = "items.png^[sheet:16x16:7,5",
|
inventory_image = "items.png^[sheet:16x16:7,5",
|
||||||
on_use = minetest.item_eat(3),
|
on_use = minetest.item_eat(3),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:cooked_porkchop", {
|
minetest.register_craftitem(":minecraft:cooked_porkchop", {
|
||||||
description = "Cooked Porkchop",
|
description = "Cooked Porkchop",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
inventory_image = "items.png^[sheet:16x16:8,5",
|
inventory_image = "items.png^[sheet:16x16:8,5",
|
||||||
on_use = minetest.item_eat(8),
|
on_use = minetest.item_eat(8),
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:saddle", {
|
minetest.register_craftitem(":minecraft:saddle", {
|
||||||
description = "Saddle",
|
description = "Saddle",
|
||||||
stack_max = 1,
|
stack_max = 1,
|
||||||
inventory_image = "items.png^[sheet:16x16:8,6"
|
inventory_image = "items.png^[sheet:16x16:8,6"
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_craftitem("minecraft:minecart", {
|
minetest.register_craftitem(":minecraft:minecart", {
|
||||||
description = "Minecart",
|
description = "Minecart",
|
||||||
inventory_image = "items.png^[sheet:16x16:7,8"
|
inventory_image = "items.png^[sheet:16x16:7,8"
|
||||||
})
|
})
|
||||||
|
|
||||||
dofile(minetest.get_modpath("minecraft") .. "/items/tools.lua")
|
|
|
@ -0,0 +1 @@
|
||||||
|
name = mcnt_core
|
|
@ -52,91 +52,6 @@ minetest.register_craft({
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
--
|
|
||||||
-- Tool recipes.
|
|
||||||
--
|
|
||||||
|
|
||||||
tool_data = {
|
|
||||||
{
|
|
||||||
material = "minecraft:plank",
|
|
||||||
output = "minecraft:wooden_",
|
|
||||||
}, {
|
|
||||||
material = "minecraft:cobble",
|
|
||||||
output = "minecraft:stone_",
|
|
||||||
}, {
|
|
||||||
material = "minecraft:iron_ingot",
|
|
||||||
output = "minecraft:iron_",
|
|
||||||
}, {
|
|
||||||
material = "minecraft:gold_ingot",
|
|
||||||
output = "minecraft:golden_",
|
|
||||||
}, {
|
|
||||||
material = "minecraft:diamond",
|
|
||||||
output = "minecraft:diamond_",
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
for k, v in pairs(tool_data) do
|
|
||||||
-- Pickaxes
|
|
||||||
minetest.register_craft({
|
|
||||||
output = v['output'].."pickaxe",
|
|
||||||
recipe = {
|
|
||||||
{v['material'], v['material'], v['material']},
|
|
||||||
{"", "minecraft:stick", ""},
|
|
||||||
{"", "minecraft:stick", ""},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Shovels
|
|
||||||
minetest.register_craft({
|
|
||||||
output = v['output'].."shovel",
|
|
||||||
recipe = {
|
|
||||||
{v['material']},
|
|
||||||
{"minecraft:stick"},
|
|
||||||
{"minecraft:stick"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Axes
|
|
||||||
minetest.register_craft({
|
|
||||||
output = v['output'].."axe",
|
|
||||||
recipe = {
|
|
||||||
{v['material'], v['material']},
|
|
||||||
{"minecraft:stick", v['material']},
|
|
||||||
{"minecraft:stick", ""},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Axes (Mirrored)
|
|
||||||
minetest.register_craft({
|
|
||||||
output = v['output'].."axe",
|
|
||||||
recipe = {
|
|
||||||
{v['material'], v['material']},
|
|
||||||
{v['material'], "minecraft:stick"},
|
|
||||||
{"", "minecraft:stick"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Hoes
|
|
||||||
minetest.register_craft({
|
|
||||||
output = v['output'].."hoe",
|
|
||||||
recipe = {
|
|
||||||
{v['material'], v['material']},
|
|
||||||
{"minecraft:stick", ""},
|
|
||||||
{"minecraft:stick", ""},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
-- Hoes (Mirrored)
|
|
||||||
minetest.register_craft({
|
|
||||||
output = v['output'].."hoe",
|
|
||||||
recipe = {
|
|
||||||
{v['material'], v['material']},
|
|
||||||
{"", "minecraft:stick"},
|
|
||||||
{"", "minecraft:stick"},
|
|
||||||
}
|
|
||||||
})
|
|
||||||
end
|
|
||||||
|
|
||||||
minetest.register_craft({
|
minetest.register_craft({
|
||||||
output = "minecraft:bow",
|
output = "minecraft:bow",
|
||||||
recipe = {
|
recipe = {
|
Before Width: | Height: | Size: 540 B After Width: | Height: | Size: 540 B |
Before Width: | Height: | Size: 422 B After Width: | Height: | Size: 422 B |
Before Width: | Height: | Size: 525 B After Width: | Height: | Size: 525 B |
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
Before Width: | Height: | Size: 558 B After Width: | Height: | Size: 558 B |
Before Width: | Height: | Size: 282 B After Width: | Height: | Size: 282 B |
Before Width: | Height: | Size: 543 B After Width: | Height: | Size: 543 B |
Before Width: | Height: | Size: 527 B After Width: | Height: | Size: 527 B |
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
Before Width: | Height: | Size: 844 B After Width: | Height: | Size: 844 B |
Before Width: | Height: | Size: 825 B After Width: | Height: | Size: 825 B |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 25 KiB |
Before Width: | Height: | Size: 142 B After Width: | Height: | Size: 142 B |
Before Width: | Height: | Size: 142 B After Width: | Height: | Size: 142 B |
Before Width: | Height: | Size: 142 B After Width: | Height: | Size: 142 B |
|
@ -1 +1,2 @@
|
||||||
name = mcnt_door
|
name = mcnt_door
|
||||||
|
depends = mcnt_core
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
name = mcnt_farming
|
name = mcnt_farming
|
||||||
|
depends = mcnt_core
|
||||||
|
|
|
@ -1 +1,2 @@
|
||||||
name = mcnt_furnace
|
name = mcnt_furnace
|
||||||
|
depends = mcnt_core
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
name = mcnt_inventory
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 782 B After Width: | Height: | Size: 782 B |
|
@ -0,0 +1,2 @@
|
||||||
|
name = mcnt_ladder
|
||||||
|
depends = mcnt_core
|
|
@ -46,7 +46,7 @@ minetest.register_node(":minecraft:water_source", {
|
||||||
minetest.register_node(":minecraft:water_flowing", {
|
minetest.register_node(":minecraft:water_flowing", {
|
||||||
description = "Flowing Water",
|
description = "Flowing Water",
|
||||||
drawtype = "flowingliquid",
|
drawtype = "flowingliquid",
|
||||||
tiles = {"water_flow.png"},
|
tiles = {"mcnt_liquids_water_flow.png"},
|
||||||
special_tiles = {
|
special_tiles = {
|
||||||
{
|
{
|
||||||
name = "mcnt_liquids_water_flow.png",
|
name = "mcnt_liquids_water_flow.png",
|
||||||
|
@ -92,7 +92,7 @@ minetest.register_node(":minecraft:water_flowing", {
|
||||||
minetest.register_node(":minecraft:lava_flowing", {
|
minetest.register_node(":minecraft:lava_flowing", {
|
||||||
description = "Flowing Lava",
|
description = "Flowing Lava",
|
||||||
drawtype = "flowingliquid",
|
drawtype = "flowingliquid",
|
||||||
tiles = {"lava_flow.png"},
|
tiles = {"mcnt_liquids_lava_flow.png"},
|
||||||
special_tiles = {
|
special_tiles = {
|
||||||
{
|
{
|
||||||
name = "mcnt_liquids_lava_flow.png",
|
name = "mcnt_liquids_lava_flow.png",
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
local layer = layer_to_y(0) -- determined as appropriate by cum
|
||||||
|
|
||||||
|
minetest.register_on_generated(function(minp, maxp)
|
||||||
|
if minp.y < layer then
|
||||||
|
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
|
||||||
|
local data = vm:get_data()
|
||||||
|
local area = VoxelArea:new({MinEdge=emin, MaxEdge=emax})
|
||||||
|
|
||||||
|
if maxp.y >= layer and minp.y <= layer then
|
||||||
|
for x = minp.x, maxp.x do
|
||||||
|
for z = minp.z, maxp.z do
|
||||||
|
data[area:index(x, layer, z)] = minetest.get_content_id("minecraft:bedrock")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
for y = minp.y, maxp.y do
|
||||||
|
if y < layer then
|
||||||
|
for x = minp.x, maxp.x do
|
||||||
|
for z = minp.z, maxp.z do
|
||||||
|
data[area:index(x, y, z)] = minetest.get_content_id("air")
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
vm:set_data(data)
|
||||||
|
vm:calc_lighting()
|
||||||
|
vm:update_liquids()
|
||||||
|
vm:write_to_map()
|
||||||
|
end
|
||||||
|
end)
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
minetest.register_alias("mapgen_stone", "minecraft:stone")
|
|
||||||
minetest.register_alias("mapgen_water_source", "minecraft:water_source")
|
|
||||||
minetest.register_alias("mapgen_river_water_source", "minecraft:water_source")
|
|
||||||
|
|
||||||
minetest.clear_registered_biomes()
|
|
||||||
minetest.clear_registered_ores()
|
|
||||||
minetest.clear_registered_decorations()
|
|
||||||
|
|
||||||
minetest.register_biome({
|
minetest.register_biome({
|
||||||
name = "grasslands",
|
name = "grasslands",
|
||||||
node_top = "minecraft:grass",
|
node_top = "minecraft:grass",
|
||||||
|
@ -69,5 +61,5 @@ minetest.register_decoration({
|
||||||
decoration = "minecraft:flower",
|
decoration = "minecraft:flower",
|
||||||
})
|
})
|
||||||
|
|
||||||
dofile(minetest.get_modpath("minecraft") .. "/mapgen/bedrock.lua")
|
dofile(minetest.get_modpath("mcnt_mapgen") .. "/bedrock.lua")
|
||||||
dofile(minetest.get_modpath("minecraft") .. "/mapgen/ores.lua")
|
dofile(minetest.get_modpath("mcnt_mapgen") .. "/ores.lua")
|
|
@ -0,0 +1,2 @@
|
||||||
|
name = mcnt_mapgen
|
||||||
|
depends = mcnt_core
|
|
@ -1,2 +1,2 @@
|
||||||
name = mcnt_sponge
|
name = mcnt_sponge
|
||||||
depends = minecraft
|
depends = mcnt_core
|
|
@ -1,4 +1,7 @@
|
||||||
minetest.register_tool("minecraft:wooden_pickaxe", {
|
|
||||||
|
dofile(minetest.get_modpath('mcnt_tools')..'/recipes.lua')
|
||||||
|
|
||||||
|
minetest.register_tool(":minecraft:wooden_pickaxe", {
|
||||||
description = "Wooden Pickaxe",
|
description = "Wooden Pickaxe",
|
||||||
inventory_image = "items.png^[sheet:16x16:0,6",
|
inventory_image = "items.png^[sheet:16x16:0,6",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -14,7 +17,7 @@ minetest.register_tool("minecraft:wooden_pickaxe", {
|
||||||
punch_attack_uses = 30,
|
punch_attack_uses = 30,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_tool("minecraft:stone_pickaxe", {
|
minetest.register_tool(":minecraft:stone_pickaxe", {
|
||||||
description = "Stone Pickaxe",
|
description = "Stone Pickaxe",
|
||||||
inventory_image = "items.png^[sheet:16x16:1,6",
|
inventory_image = "items.png^[sheet:16x16:1,6",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -30,7 +33,7 @@ minetest.register_tool("minecraft:stone_pickaxe", {
|
||||||
punch_attack_uses = 66,
|
punch_attack_uses = 66,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_tool("minecraft:iron_pickaxe", {
|
minetest.register_tool(":minecraft:iron_pickaxe", {
|
||||||
description = "Iron Pickaxe",
|
description = "Iron Pickaxe",
|
||||||
inventory_image = "items.png^[sheet:16x16:2,6",
|
inventory_image = "items.png^[sheet:16x16:2,6",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -46,7 +49,7 @@ minetest.register_tool("minecraft:iron_pickaxe", {
|
||||||
punch_attack_uses = 126,
|
punch_attack_uses = 126,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_tool("minecraft:golden_pickaxe", {
|
minetest.register_tool(":minecraft:golden_pickaxe", {
|
||||||
description = "Golden Pickaxe",
|
description = "Golden Pickaxe",
|
||||||
inventory_image = "items.png^[sheet:16x16:4,6",
|
inventory_image = "items.png^[sheet:16x16:4,6",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -62,7 +65,7 @@ minetest.register_tool("minecraft:golden_pickaxe", {
|
||||||
punch_attack_uses = 17,
|
punch_attack_uses = 17,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_tool("minecraft:diamond_pickaxe", {
|
minetest.register_tool(":minecraft:diamond_pickaxe", {
|
||||||
description = "Diamond Pickaxe",
|
description = "Diamond Pickaxe",
|
||||||
inventory_image = "items.png^[sheet:16x16:3,6",
|
inventory_image = "items.png^[sheet:16x16:3,6",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -81,7 +84,7 @@ minetest.register_tool("minecraft:diamond_pickaxe", {
|
||||||
|
|
||||||
-- Shovels!
|
-- Shovels!
|
||||||
|
|
||||||
minetest.register_tool("minecraft:wooden_shovel", {
|
minetest.register_tool(":minecraft:wooden_shovel", {
|
||||||
description = "Wooden Shovel",
|
description = "Wooden Shovel",
|
||||||
inventory_image = "items.png^[sheet:16x16:0,5",
|
inventory_image = "items.png^[sheet:16x16:0,5",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -97,7 +100,7 @@ minetest.register_tool("minecraft:wooden_shovel", {
|
||||||
punch_attack_uses = 30,
|
punch_attack_uses = 30,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_tool("minecraft:stone_shovel", {
|
minetest.register_tool(":minecraft:stone_shovel", {
|
||||||
description = "Stone Shovel",
|
description = "Stone Shovel",
|
||||||
inventory_image = "items.png^[sheet:16x16:1,5",
|
inventory_image = "items.png^[sheet:16x16:1,5",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -113,7 +116,7 @@ minetest.register_tool("minecraft:stone_shovel", {
|
||||||
punch_attack_uses = 66,
|
punch_attack_uses = 66,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_tool("minecraft:iron_shovel", {
|
minetest.register_tool(":minecraft:iron_shovel", {
|
||||||
description = "Iron Shovel",
|
description = "Iron Shovel",
|
||||||
inventory_image = "items.png^[sheet:16x16:2,5",
|
inventory_image = "items.png^[sheet:16x16:2,5",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -129,7 +132,7 @@ minetest.register_tool("minecraft:iron_shovel", {
|
||||||
punch_attack_uses = 126,
|
punch_attack_uses = 126,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_tool("minecraft:golden_shovel", {
|
minetest.register_tool(":minecraft:golden_shovel", {
|
||||||
description = "Golden Shovel",
|
description = "Golden Shovel",
|
||||||
inventory_image = "items.png^[sheet:16x16:4,5",
|
inventory_image = "items.png^[sheet:16x16:4,5",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -145,7 +148,7 @@ minetest.register_tool("minecraft:golden_shovel", {
|
||||||
punch_attack_uses = 17,
|
punch_attack_uses = 17,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_tool("minecraft:diamond_shovel", {
|
minetest.register_tool(":minecraft:diamond_shovel", {
|
||||||
description = "Diamond Shovel",
|
description = "Diamond Shovel",
|
||||||
inventory_image = "items.png^[sheet:16x16:3,5",
|
inventory_image = "items.png^[sheet:16x16:3,5",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -164,7 +167,7 @@ minetest.register_tool("minecraft:diamond_shovel", {
|
||||||
|
|
||||||
-- Axes
|
-- Axes
|
||||||
|
|
||||||
minetest.register_tool("minecraft:wooden_axe", {
|
minetest.register_tool(":minecraft:wooden_axe", {
|
||||||
description = "Wooden Axe",
|
description = "Wooden Axe",
|
||||||
inventory_image = "items.png^[sheet:16x16:0,7",
|
inventory_image = "items.png^[sheet:16x16:0,7",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -180,7 +183,7 @@ minetest.register_tool("minecraft:wooden_axe", {
|
||||||
punch_attack_uses = 30,
|
punch_attack_uses = 30,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_tool("minecraft:stone_axe", {
|
minetest.register_tool(":minecraft:stone_axe", {
|
||||||
description = "Stone Axe",
|
description = "Stone Axe",
|
||||||
inventory_image = "items.png^[sheet:16x16:1,7",
|
inventory_image = "items.png^[sheet:16x16:1,7",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -196,7 +199,7 @@ minetest.register_tool("minecraft:stone_axe", {
|
||||||
punch_attack_uses = 66,
|
punch_attack_uses = 66,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_tool("minecraft:iron_axe", {
|
minetest.register_tool(":minecraft:iron_axe", {
|
||||||
description = "Iron Axe",
|
description = "Iron Axe",
|
||||||
inventory_image = "items.png^[sheet:16x16:2,7",
|
inventory_image = "items.png^[sheet:16x16:2,7",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -212,7 +215,7 @@ minetest.register_tool("minecraft:iron_axe", {
|
||||||
punch_attack_uses = 126,
|
punch_attack_uses = 126,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_tool("minecraft:golden_axe", {
|
minetest.register_tool(":minecraft:golden_axe", {
|
||||||
description = "Golden Axe",
|
description = "Golden Axe",
|
||||||
inventory_image = "items.png^[sheet:16x16:4,7",
|
inventory_image = "items.png^[sheet:16x16:4,7",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -228,7 +231,7 @@ minetest.register_tool("minecraft:golden_axe", {
|
||||||
punch_attack_uses = 17,
|
punch_attack_uses = 17,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
minetest.register_tool("minecraft:diamond_axe", {
|
minetest.register_tool(":minecraft:diamond_axe", {
|
||||||
description = "Diamond Axe",
|
description = "Diamond Axe",
|
||||||
inventory_image = "items.png^[sheet:16x16:3,7",
|
inventory_image = "items.png^[sheet:16x16:3,7",
|
||||||
tool_capabilities = {
|
tool_capabilities = {
|
||||||
|
@ -243,4 +246,4 @@ minetest.register_tool("minecraft:diamond_axe", {
|
||||||
damage_groups = {fleshy=9},
|
damage_groups = {fleshy=9},
|
||||||
punch_attack_uses = 781,
|
punch_attack_uses = 781,
|
||||||
},
|
},
|
||||||
})
|
})
|
|
@ -0,0 +1 @@
|
||||||
|
name = mcnt_tools
|
|
@ -0,0 +1,85 @@
|
||||||
|
|
||||||
|
--
|
||||||
|
-- Tool recipes.
|
||||||
|
--
|
||||||
|
|
||||||
|
tool_data = {
|
||||||
|
{
|
||||||
|
material = "minecraft:plank",
|
||||||
|
output = "minecraft:wooden_",
|
||||||
|
}, {
|
||||||
|
material = "minecraft:cobble",
|
||||||
|
output = "minecraft:stone_",
|
||||||
|
}, {
|
||||||
|
material = "minecraft:iron_ingot",
|
||||||
|
output = "minecraft:iron_",
|
||||||
|
}, {
|
||||||
|
material = "minecraft:gold_ingot",
|
||||||
|
output = "minecraft:golden_",
|
||||||
|
}, {
|
||||||
|
material = "minecraft:diamond",
|
||||||
|
output = "minecraft:diamond_",
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
for k, v in pairs(tool_data) do
|
||||||
|
-- Pickaxes
|
||||||
|
minetest.register_craft({
|
||||||
|
output = v['output'].."pickaxe",
|
||||||
|
recipe = {
|
||||||
|
{v['material'], v['material'], v['material']},
|
||||||
|
{"", "minecraft:stick", ""},
|
||||||
|
{"", "minecraft:stick", ""},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Shovels
|
||||||
|
minetest.register_craft({
|
||||||
|
output = v['output'].."shovel",
|
||||||
|
recipe = {
|
||||||
|
{v['material']},
|
||||||
|
{"minecraft:stick"},
|
||||||
|
{"minecraft:stick"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Axes
|
||||||
|
minetest.register_craft({
|
||||||
|
output = v['output'].."axe",
|
||||||
|
recipe = {
|
||||||
|
{v['material'], v['material']},
|
||||||
|
{"minecraft:stick", v['material']},
|
||||||
|
{"minecraft:stick", ""},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Axes (Mirrored)
|
||||||
|
minetest.register_craft({
|
||||||
|
output = v['output'].."axe",
|
||||||
|
recipe = {
|
||||||
|
{v['material'], v['material']},
|
||||||
|
{v['material'], "minecraft:stick"},
|
||||||
|
{"", "minecraft:stick"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Hoes
|
||||||
|
minetest.register_craft({
|
||||||
|
output = v['output'].."hoe",
|
||||||
|
recipe = {
|
||||||
|
{v['material'], v['material']},
|
||||||
|
{"minecraft:stick", ""},
|
||||||
|
{"minecraft:stick", ""},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
|
||||||
|
-- Hoes (Mirrored)
|
||||||
|
minetest.register_craft({
|
||||||
|
output = v['output'].."hoe",
|
||||||
|
recipe = {
|
||||||
|
{v['material'], v['material']},
|
||||||
|
{"", "minecraft:stick"},
|
||||||
|
{"", "minecraft:stick"},
|
||||||
|
}
|
||||||
|
})
|
||||||
|
end
|
|
@ -1 +1,2 @@
|
||||||
name = mcnt_torch
|
name = mcnt_torch
|
||||||
|
depends = mcnt_core
|
|
@ -1 +1,2 @@
|
||||||
name = mcnt_trees
|
name = mcnt_trees
|
||||||
|
depends = mcnt_core
|
|
@ -1,6 +1,13 @@
|
||||||
wield3d = {}
|
wield3d = {}
|
||||||
|
|
||||||
dofile(minetest.get_modpath(minetest.get_current_modname()).."/location.lua")
|
-- /location.lua
|
||||||
|
local bone = "Arm_Right"
|
||||||
|
local pos = {x=0, y=5.5, z=3}
|
||||||
|
local scale = {x=0.15, y=0.15}
|
||||||
|
local rx = -90
|
||||||
|
local rz = 90
|
||||||
|
|
||||||
|
wield3d.location = { }
|
||||||
|
|
||||||
local has_wieldview = minetest.get_modpath("wieldview")
|
local has_wieldview = minetest.get_modpath("wieldview")
|
||||||
local update_time_conf = minetest.setting_get("wield3d_update_time") or 1
|
local update_time_conf = minetest.setting_get("wield3d_update_time") or 1
|
||||||
|
@ -34,12 +41,12 @@ local function add_wield_entity(player)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
minetest.register_item("wield3d:hand", {
|
minetest.register_item(":wield3d:hand", {
|
||||||
type = "none",
|
type = "none",
|
||||||
wield_image = "blank.png",
|
wield_image = "blank.png",
|
||||||
})
|
})
|
||||||
|
|
||||||
minetest.register_entity("wield3d:wield_entity", {
|
minetest.register_entity(":wield3d:wield_entity", {
|
||||||
physical = false,
|
physical = false,
|
||||||
collisionbox = {-0.125,-0.125,-0.125, 0.125,0.125,0.125},
|
collisionbox = {-0.125,-0.125,-0.125, 0.125,0.125,0.125},
|
||||||
visual = "wielditem",
|
visual = "wielditem",
|
|
@ -0,0 +1 @@
|
||||||
|
name = mcnt_wield
|
|
@ -1,21 +0,0 @@
|
||||||
local layer = layer_to_y(0) -- determined as appropriate by cum
|
|
||||||
|
|
||||||
minetest.register_on_generated(function(minp, maxp)
|
|
||||||
if maxp.y >= layer and minp.y <= layer then
|
|
||||||
local vm, emin, emax = minetest.get_mapgen_object("voxelmanip")
|
|
||||||
local data = vm:get_data()
|
|
||||||
local area = VoxelArea:new({MinEdge=emin, MaxEdge=emax})
|
|
||||||
|
|
||||||
for x = minp.x, maxp.x do
|
|
||||||
for z = minp.z, maxp.z do
|
|
||||||
data[area:index(x, layer, z)] = minetest.get_content_id("minecraft:bedrock")
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
vm:set_data(data)
|
|
||||||
vm:calc_lighting()
|
|
||||||
vm:update_liquids()
|
|
||||||
vm:write_to_map()
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
name = minecraft
|
|
|
@ -1,4 +0,0 @@
|
||||||
[mod] 3d wielded items [wield3d]
|
|
||||||
================================
|
|
||||||
|
|
||||||
Copyright (C) 2013 Stuart Jones - WTFPL
|
|
|
@ -1,17 +0,0 @@
|
||||||
[mod] 3d wielded items [wield3d]
|
|
||||||
================================
|
|
||||||
|
|
||||||
Mod Version: 0.4.0
|
|
||||||
|
|
||||||
Minetest Version: 0.4.12 or later
|
|
||||||
|
|
||||||
Decription: Visible 3d wielded items for Minetest
|
|
||||||
|
|
||||||
Depends: default
|
|
||||||
|
|
||||||
Makes hand wielded items visible to other players.
|
|
||||||
|
|
||||||
By default the wielded object is updated at one second intervals,
|
|
||||||
you can override this by adding wield3d_update_time = 1 (seconds)
|
|
||||||
to your minetest.conf
|
|
||||||
|
|
|
@ -1,36 +0,0 @@
|
||||||
-- Wielded Item Location Overrides - [item_name] = {bone, position, rotation}
|
|
||||||
|
|
||||||
local bone = "Arm_Right"
|
|
||||||
local pos = {x=0, y=5.5, z=3}
|
|
||||||
local scale = {x=0.15, y=0.15}
|
|
||||||
local rx = -90
|
|
||||||
local rz = 90
|
|
||||||
|
|
||||||
wield3d.location = {
|
|
||||||
["default:torch"] = {bone, pos, {x=rx, y=180, z=rz}, scale},
|
|
||||||
["default:sapling"] = {bone, pos, {x=rx, y=180, z=rz}, scale},
|
|
||||||
["flowers:dandelion_white"] = {bone, pos, {x=rx, y=180, z=rz}, scale},
|
|
||||||
["flowers:dandelion_yellow"] = {bone, pos, {x=rx, y=180, z=rz}, scale},
|
|
||||||
["flowers:geranium"] = {bone, pos, {x=rx, y=180, z=rz}, scale},
|
|
||||||
["flowers:rose"] = {bone, pos, {x=rx, y=180, z=rz}, scale},
|
|
||||||
["flowers:tulip"] = {bone, pos, {x=rx, y=180, z=rz}, scale},
|
|
||||||
["flowers:viola"] = {bone, pos, {x=rx, y=180, z=rz}, scale},
|
|
||||||
["default:shovel_wood"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["default:shovel_stone"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["default:shovel_steel"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["default:shovel_bronze"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["default:shovel_mese"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["default:shovel_diamond"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["bucket:bucket_empty"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["bucket:bucket_water"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["bucket:bucket_lava"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["screwdriver:screwdriver"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["screwdriver:screwdriver1"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["screwdriver:screwdriver2"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["screwdriver:screwdriver3"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["screwdriver:screwdriver4"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["vessels:glass_bottle"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["vessels:drinking_glass"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
["vessels:steel_bottle"] = {bone, pos, {x=rx, y=135, z=rz}, scale},
|
|
||||||
}
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
name = wield3d
|
|
||||||
description = See the items other players are holding
|
|
||||||
release = 842
|
|
||||||
author = stu
|
|
||||||
title = Wield3D
|
|