Added media

master
Andrey 2020-12-04 01:47:39 +03:00
parent 94a6524221
commit 497d20e5d4
9 changed files with 23 additions and 0 deletions

1
depends.txt Normal file
View File

@ -0,0 +1 @@

18
gun.lua Normal file
View File

@ -0,0 +1,18 @@
minetest.register_node("portaltest:gun", {
drawtype = "mesh",
visual_scale = 0.5,
tiles = {"portaltest_gun.png"},
mesh = "portaltest_gun.b3d",
description = "Portal Gun",
paramtype = "light",
paramtype2 = "facedir",
sunlight_propagates = true,
collision_box = {0, 0, 0, 0, 0, 0},
selection_box = {0, 0, 0, 0, 0, 0},
on_construct = function(pos)
return nil
end,
on_place = function(itemstack, placer, pointed_thing)
return nil
end
})

3
init.lua Normal file
View File

@ -0,0 +1,3 @@
local modpath = minetest.get_modpath("portaltest")
dofile(modpath .. "/gun.lua")

BIN
models/portaltest_gun.b3d Normal file

Binary file not shown.

BIN
models/portaltest_gun.blend Normal file

Binary file not shown.

Binary file not shown.

1
portal.lua Normal file
View File

@ -0,0 +1 @@

BIN
textures/portaltest_gun.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 471 B