Page 1 of 1

3D Papyrus

PostPosted: Sat May 31, 2014 14:58
by TG-MyinaWD
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(),
})

Re: 3D Papyrus

PostPosted: Sat May 31, 2014 19:46
by Calinou
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.

Re: 3D Papyrus

PostPosted: Sat May 31, 2014 19:59
by TG-MyinaWD
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.

Re: 3D Papyrus

PostPosted: Sun Jun 01, 2014 10:41
by 4aiman
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. :)

Re: 3D Papyrus

PostPosted: Sun Jun 01, 2014 12:43
by Topywo
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