diff --git a/aerial_faith_plate.lua b/aerial_faith_plate.lua index aa0e3b7..9a28f14 100644 --- a/aerial_faith_plate.lua +++ b/aerial_faith_plate.lua @@ -1,21 +1,26 @@ -minetest.register_node("portaltest:aerial_faith_plate", { +minetest.register_node("portaltest:aerial_faith_plate_idle", { description = "Aerial Faith Plate (Click to set up parameters of bouncing)", - drawtype = "nodebox", - tiles = { - "portaltest_aerial_faith_plate_top.png", - "portaltest_aerial_faith_plate_bottom.png", - "portaltest_aerial_faith_plate_side.png" - }, - use_texture_alpha = true, + drawtype = "mesh", + mesh = "portaltest_aerial_faith_plate_idle.b3d", + tiles = {"portaltest_aerial_faith_plate.png"}, + use_texture_alpha = "blend", paramtype = "light", paramtype2 = "facedir", - node_box = { + collision_box = { type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, -0.41, 0.5} + fixed = { + --{-0.85, -1.5, -0.85, 0.85, -0.5, 0.85}, + {-1.5, -0.5, -1.5, 1.5, -0.3, 1.5}, + {-0.85, -0.3, -0.85, 0.85, -0.2, 0.85} + } }, selection_box = { type = "fixed", - fixed = {-0.5, -0.5, -0.5, 0.5, -0.41, 0.5} + fixed = { + --{-0.85, -1.5, -0.85, 0.85, -0.5, 0.85}, + {-1.5, -0.5, -1.5, 1.5, -0.3, 1.5}, + {-0.85, -0.3, -0.85, 0.85, -0.2, 0.85} + } }, groups = {choppy=2.5}, sounds = default.node_sound_wood_defaults(), @@ -38,4 +43,4 @@ minetest.register_node("portaltest:aerial_faith_plate", { button[3,5.5;3,1;save;Save] ]]) end -}) +}) diff --git a/models/portaltest_aerial_faith_plate_active.b3d b/models/portaltest_aerial_faith_plate_active.b3d new file mode 100644 index 0000000..5292d4f Binary files /dev/null and b/models/portaltest_aerial_faith_plate_active.b3d differ diff --git a/models/portaltest_aerial_faith_plate_active.blend b/models/portaltest_aerial_faith_plate_active.blend new file mode 100644 index 0000000..7f2748a Binary files /dev/null and b/models/portaltest_aerial_faith_plate_active.blend differ diff --git a/models/portaltest_aerial_faith_plate_opened.blend b/models/portaltest_aerial_faith_plate_active.blend1 similarity index 59% rename from models/portaltest_aerial_faith_plate_opened.blend rename to models/portaltest_aerial_faith_plate_active.blend1 index b631141..e06f21d 100644 Binary files a/models/portaltest_aerial_faith_plate_opened.blend and b/models/portaltest_aerial_faith_plate_active.blend1 differ diff --git a/models/portaltest_aerial_faith_plate_closed.blend b/models/portaltest_aerial_faith_plate_closed.blend new file mode 100644 index 0000000..35237f5 Binary files /dev/null and b/models/portaltest_aerial_faith_plate_closed.blend differ diff --git a/models/portaltest_aerial_faith_plate_idle.b3d b/models/portaltest_aerial_faith_plate_idle.b3d new file mode 100644 index 0000000..fc65aa7 Binary files /dev/null and b/models/portaltest_aerial_faith_plate_idle.b3d differ diff --git a/models/portaltest_aerial_faith_plate_idle.blend b/models/portaltest_aerial_faith_plate_idle.blend new file mode 100644 index 0000000..1d10e08 Binary files /dev/null and b/models/portaltest_aerial_faith_plate_idle.blend differ diff --git a/models/portaltest_aerial_faith_plate_idle.blend1 b/models/portaltest_aerial_faith_plate_idle.blend1 new file mode 100644 index 0000000..d813650 Binary files /dev/null and b/models/portaltest_aerial_faith_plate_idle.blend1 differ diff --git a/models/portaltest_gun.blend b/models/portaltest_gun.blend index 6ed506b..f60e1f3 100644 Binary files a/models/portaltest_gun.blend and b/models/portaltest_gun.blend differ diff --git a/models/portaltest_gun.blend1 b/models/portaltest_gun.blend1 index bfdf46d..6ed506b 100644 Binary files a/models/portaltest_gun.blend1 and b/models/portaltest_gun.blend1 differ diff --git a/textures/portaltest_aerial_faith_plate.png b/textures/portaltest_aerial_faith_plate.png new file mode 100644 index 0000000..7bb4438 Binary files /dev/null and b/textures/portaltest_aerial_faith_plate.png differ