hand item added

This commit is contained in:
Kacper Kostka 2023-01-09 02:35:45 +01:00
parent c8420db675
commit 5df788b47e
10 changed files with 93 additions and 14 deletions

0
LICENSE.txt Normal file
View File

View File

@ -1,6 +1,3 @@
minetest.register_on_joinplayer(function(player)
player:set_sky({r=0, g=0, b=0}, "plain", {})
end)
minetest.register_node("amogus_blocks:ladder_steel", {
description = "Ladder",
@ -76,13 +73,6 @@ minetest.register_node("amogus_blocks:redblock", {
drop = 'amogus_blocks:redblock', groups = {cracky=3, stone=1},
})
minetest.register_node("amogus_blocks:glass", {
description = "Glass",
tiles = {"glass.png"},
drop = 'amogus_blocks:glass', groups = {cracky=3, stone=1},
})
minetest.register_node("amogus_blocks:glowing_block", {
description = "Glowing Block",
tiles = {"glowing_block.png"},
@ -122,5 +112,76 @@ minetest.register_node("amogus_blocks:wood", {
drop = 'amogus:wood', groups = {cracky=3, stone=1},
})
minetest.register_alias("mapgen_dirt", "amogus_blocks:floor")
minetest.register_node("amogus_blocks:water", {
description = "Water",
drawtype = "liquid",
tiles = {
{
name = "water.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
},
{
name = "water.png",
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
},
},
special_tiles = {
-- New-style water source material (mostly unused)
{
name = "water.png",
backface_culling = false,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 2.0,
},
},
-- New-style flowing water material (mostly unused)
{
name = "water.png",
backface_culling = true,
animation = {
type = "vertical_frames",
aspect_w = 16,
aspect_h = 16,
length = 0.8,
},
},
},
alpha = 160,
paramtype = "light",
walkable = false,
pointable = false,
diggable = false,
buildable_to = true,
drowning = 1,
liquidtype = "source",
liquid_alternative_flowing = "amogus_blocks:water_flowing",
liquid_alternative_source = "amogus_blocks:water_source",
liquid_viscosity = 1,
post_effect_color = {a = 103, r = 30, g = 60, b = 90},
groups = {water = 3, liquid = 3, puts_out_fire = 1},
})
minetest.register_node("amogus_blocks:dirt", {
description = "Dirt",
tiles = {"d.png"},
groups = {crumbly = 3, soil = 1},
--sounds = default.node_sound_dirt_defaults({
-- footstep = {name = "default_grass_footstep", gain = 0.4},
--}),
})
minetest.register_alias("mapgen_water_source", "amogus_blocks:water")
minetest.register_alias("mapgen_stone", "amogus_blocks:grass")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 B

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 126 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 214 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 116 B

View File

@ -0,0 +1,4 @@
minetest.register_on_joinplayer(function(player)
player:set_physics_override({speed = 2})
player:set_sky({r=0, g=0, b=0}, "plain", {})
end)

View File

@ -0,0 +1,2 @@
-- add amogus_blocks:tv to the world generator on the survace at random places

View File

@ -34,7 +34,6 @@ minetest.register_craftitem("amogus_items:amogus", {
end
})
-- add sprite, coke, fanta, tomato, and water items and make it heal 1 hp
minetest.register_craftitem("amogus_items:sprite", {
description = "Sprite",
inventory_image = "sprite.png",
@ -59,7 +58,7 @@ minetest.register_craftitem("amogus_items:water", {
inventory_image = "water.png",
on_use = minetest.item_eat(1),
})
-- add lightsaber_blue and lightsaber_red and lightsaber_green and let it destroy nodes and mobs
minetest.register_tool("amogus_items:lightsaber_blue", {
description = "Blue Lightsaber",
inventory_image = "lightsaber_blue.png",
@ -100,4 +99,17 @@ minetest.register_tool("amogus_items:lightsaber_green", {
damage_groups = {fleshy=10},
},
sound = {breaks = "amogus_sound"},
})
})
minetest.register_tool("hand_item:hand", {
description = "Hand",
inventory_image = "hand_item_hand.png",
tool_capabilities = {
full_punch_interval = 1.0,
max_drop_level = 0,
groupcaps = {
snappy = {times={[1]=1.90, [2]=0.90, [3]=0.30}, uses=40, maxlevel=3},
},
damage_groups = {fleshy = 1},
}
})