3D Papyrus

User avatar
TG-MyinaWD
Member
 
Posts: 355
Joined: Thu May 08, 2014 21:22
GitHub: Maddie-Myina
IRC: Maddie-Myina
In-game: .

3D Papyrus

by TG-MyinaWD » Sat May 31, 2014 14:58

So I made a 3D papyrus out of Nodebox.
Maybe we can use it in the game the nodebox? And Minecraft don't have 3D Sugarcane so Minetest would have something Minecraft don't have yet.

So how about it? do you think it a great idea use it or not?

Here code:
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("default:papyrus", {
   description = "Papyrus",
   tiles = {"default_papyrus_3d.png"},
   inventory_image = "default_papyrus.png",
   wield_image = "default_papyrus.png",
   paramtype = "light",
   walkable = false,
   is_ground_content = true,
   groups = {snappy=3,flammable=2,3d_nodeboxs=1},
   drawtype = "nodebox",
   node_box = {
      type = "fixed",
      fixed = {
         {-0.375, -0.5, 0.3125, -0.25, 0.5, 0.4375},
         {-0.125, -0.5, -0.125, 0, 0.5, 0},
         {0.125, -0.5, 0.1875, 0.25, 0.5, 0.3125},
         {-0.3125, -0.5, -0.375, -0.1875, 0.5, -0.25},
         {0.25, -0.5, -0.3125, 0.375, 0.5, -0.1875},
      },
   },   
   selection_box = {
      type = "fixed",
      fixed = {
         {-0.375, -0.5, 0.3125, -0.25, 0.5, 0.4375},
         {-0.125, -0.5, -0.125, 0, 0.5, 0},
         {0.125, -0.5, 0.1875, 0.25, 0.5, 0.3125},
         {-0.3125, -0.5, -0.375, -0.1875, 0.5, -0.25},
         {0.25, -0.5, -0.3125, 0.375, 0.5, -0.1875},
      }
   },
   sounds = default.node_sound_leaves_defaults(),
})
I'm a Transgender no shame about it.
I prefer to be considered as a "Girl/Lady/Miss/Madam/Female" for now on.
 

User avatar
Calinou
Member
 
Posts: 3124
Joined: Mon Aug 01, 2011 14:26
GitHub: Calinou
IRC: Calinou
In-game: Calinou

Re: 3D Papyrus

by Calinou » Sat May 31, 2014 19:46

What if you have hundreds of papyrus in view? It'll be much slower.

You don't need to re-define the selection box if it's the same as the node box. However, you probably want to use only 1 larger selection box here.
 

User avatar
TG-MyinaWD
Member
 
Posts: 355
Joined: Thu May 08, 2014 21:22
GitHub: Maddie-Myina
IRC: Maddie-Myina
In-game: .

Re: 3D Papyrus

by TG-MyinaWD » Sat May 31, 2014 19:59

I didn't think of having hundreds of papyrus. only few.
But I didn't know know do with the selection box so I did same size as the Nodebox.

But I am going have 10 in random places in my Horror game.
I'm a Transgender no shame about it.
I prefer to be considered as a "Girl/Lady/Miss/Madam/Female" for now on.
 

4aiman
Member
 
Posts: 1208
Joined: Mon Jul 30, 2012 05:47

Re: 3D Papyrus

by 4aiman » Sun Jun 01, 2014 10:41

Please, use the override_item function or deep_copy the original property table beforehand. Different games have different definitions of papyrus and it would help to change only necessary fields.

10 types of nodeboxes is great news! Just be sure that any type will connect to any other. :)
 

User avatar
Topywo
Member
 
Posts: 1718
Joined: Fri May 18, 2012 20:27

Re: 3D Papyrus

by Topywo » Sun Jun 01, 2014 12:43

I remembered this mod from Tonyka with 3d papyrus. I don't know if you know it or can use it.

viewtopic.php?f=11&t=2207
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 3 guests

cron