lkjoel wrote:ok, for now, I'm going to remove top/bottom faces, so that there would be only one face that would be the same for the whole block
Death Dealer wrote:lkjoel wrote:ok, for now, I'm going to remove top/bottom faces, so that there would be only one face that would be the same for the whole block
for now??? is the feature going to be added at a later time?
jordan4ibanez wrote:when will we be seeing this? any time this week?
lkjoel wrote:Death Dealer wrote:lkjoel wrote:ok, for now, I'm going to remove top/bottom faces, so that there would be only one face that would be the same for the whole block
for now??? is the feature going to be added at a later time?
totally. It's just that I do not know how that kind of thing works (c55's LUA docs are terrible). I will look up his code sometime or another, but first, I need to finish the basic code.
lkjoel wrote:ok, I'm working on a bit of JSON, but this will take a lot of time, and I've still got to do some codework. If I tell any of you how to do it, could you help me?
lkjoel wrote:a lot of copy and paste will be needed lol
lkjoel wrote:oh, and one other thing. If there is no "inventory_image" property, please include it as the first image in "tile_images"
minetest.register_node("X", {
Y = Z,
A = B, (etc...)
})
{
"name":"X",
"Y":"Z",
"A":"B", (etc...)
}
{
...
"tile_images":{"default_myblock.png","default_myblock_side.png"},
"inventory_image":"default_myblock.png"
...
}
lkjoel wrote:Mea culpa, I forgot to explain the basics lol. Here they are:
First, I'll give you an example, then I'll expalin it.
Original: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("X", {
Y = Z,
A = B, (etc...)
})
New: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
{
"name":"X",
"Y":"Z",
"A":"B", (etc...)
}
Brackets {} signify a new block/node. After that, = is replaced to :, and everything is in quotes (except for numbers and true/false). If there is no inventory_image option, set it to the first value of tile_images (look at the example below):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
{
...
"tile_images":{"default_myblock.png","default_myblock_side.png"},
"inventory_image":"default_myblock.png"
...
}
Please append all of the new blocks/nodes to blocks.json
Is this clear? I'm not the best at explaining, so if it isn't clear enough, let me know (don't feel bad)
lkjoel wrote:glad to know I explained it clearly this time lol! I'm thinking of splitting up the code, and using a different GUI framework (twitter's bootstrap)
Users browsing this forum: No registered users and 5 guests