3D ITEMS

User avatar
Christian9
Member
 
Posts: 273
Joined: Fri Sep 19, 2014 20:29
In-game: Christian9

3D ITEMS

by Christian9 » Mon May 23, 2016 20:39

I have made many,many,many 3d lightsaber models for my upcoming starwars mod, but I don't know how to make a 3d item, can someone help? thanks in advance
 

sofar
Member
 
Posts: 781
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: 3D ITEMS

by sofar » Mon May 23, 2016 22:35

Christian9 wrote:I have made many,many,many 3d lightsaber models for my upcoming starwars mod, but I don't know how to make a 3d item, can someone help? thanks in advance


The only way to do that is to attach an entity to a player model, as items can't be 3D models by default. Look at set_attach() and other mods that do similar this (wielditem, for instance, and car/helicopter/carts mods)
 

User avatar
AiTechEye
Member
 
Posts: 409
Joined: Fri May 29, 2015 21:14

Re: 3D ITEMS

by AiTechEye » Tue May 24, 2016 17:00

Can player hold 3d object? (ex:holding gun)


https://forum.minetest.net/viewtopic.php?f=3&t=14297




It's possible with nodes, i made it in the gravitygun mod... nodes have the on_use and on_place functions like tools / items.

https://forum.minetest.net/viewtopic.php?f=9&t=14056


Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
minetest.register_node("gravitygun:gun2", {
   description = "Gravitygun",
   range = 10,
   stack_max = 1,
   inventory_image = "gravitygun_gun2.png",
   tiles = {"tiles"},
   groups = {dig_immediate = 3},
   paramtype = "light",
   sunlight_propagates = true,
   drawtype="mesh",
   mesh="gravitygun_gun.obj",
   on_use = function(itemstack, user, pointed_thing)
      return itemstack
   end,
   on_place = function(itemstack, user, pointed_thing)
      return itemstack
   end,
})




Image
Alive AI Mine/Build AI NPC
Gravitygun HL2
Portalgun Portal
Marssurvive Survive on mars
Bows bows + arrows
SoundCloud (Music)
SoundCloud (Classic)
YouTube
 

User avatar
Christian9
Member
 
Posts: 273
Joined: Fri Sep 19, 2014 20:29
In-game: Christian9

Re: 3D ITEMS

by Christian9 » Tue May 24, 2016 17:02

K, I'll try this
 

User avatar
Christian9
Member
 
Posts: 273
Joined: Fri Sep 19, 2014 20:29
In-game: Christian9

Re: 3D ITEMS

by Christian9 » Tue May 24, 2016 20:46

Thanks UjEdwin, I might be able to implement the force as well with youre gravity gun mod. here are the lightsabers so far

Kylo Ren:
Image

Darth Vader:
Image

Anakin Skywalker:
Image

Luke Skywalker
Image
 

User avatar
MineYoshi
Member
 
Posts: 4267
Joined: Wed Jul 08, 2015 13:20
GitHub: MineYosh
IRC: MineYoshi
In-game: Kirby_Retro

Re: 3D ITEMS

by MineYoshi » Tue May 24, 2016 20:54

Very Nice, but i would like the "light sword" a bit bigger...
People talk about freedom of speech, so i'll say that God exists.
Open your eyes!! See The big unicorn conspiracy.!! :D The government has been lying to us about unicorns!!
"I've learned there are three things you don't discuss with people: religion, politics and the Great Pumpkin" - Linus Van Pelt
I'm the Officially 1st ABJist in the world ( ͡° ͜ʖ ͡°)
 

User avatar
Christian9
Member
 
Posts: 273
Joined: Fri Sep 19, 2014 20:29
In-game: Christian9

Re: 3D ITEMS

by Christian9 » Tue May 24, 2016 20:57

There all W.I.P, the blades will be bigger and glow
 


Return to Modding Discussion

Who is online

Users browsing this forum: No registered users and 5 guests

cron