Now that you mention it, there is no way to specify a recipe to get the inverted one. It's because it is the same block, but the items have different metadata, resulting in different state when place.
When you set a recipe in the JSON, it crafts the ItemStack with default (0) metadata. I need to add way to allow metadata for the crafted item.
As for the textures, there is currently no special way to specify the "sloped" part directly. However you could cheat a little :
The code says to get the bottom, top, front or sides when necessary, and in case they're not specified, to fall back to textureName value. That means if you have textures block, AND textureName, you should be able to have a different texture for the "sloped" part. (Though I haven't tested that.)
- Changed "recipe" element to "recipes". It's now an array to allow multiple recipes for one blocks.
- Added "metadata" element to a recipes.
Edit:I updated the thread to include the new types added in 1.9-4.0.0, as well as the recipe changes. There is also the example pack available for download. Enjoy!
From the log :
[17:01:04] [Client thread/ERROR] [ddb/ddb]: Failed to read example.json : com.google.gson.stream.MalformedJsonException: Expected name at line 53 column 3
I messed up the JSON, an extra comma that shouldn't be there. I'll update the link later, but meanwhile, you can edit the JSON yourself.
I made a tutorial (first steps) for Czech modders: http://hry.poradna.net/a/view/127585-minecraft-udelej-si-sam-i
Nice. Unfortunately, I can't read any of this, but thanks
Mods for Minecraft :
MalisisDoors
MalisisBlocks
MalisisAdvert
MalisisSwitches
Do It Yourself Decorative Blocks
Do you prepare version for 1.9 too?
Mods for Minecraft :
MalisisDoors
MalisisBlocks
MalisisAdvert
MalisisSwitches
Do It Yourself Decorative Blocks
the blocks even looks cool
It may be best to go directly to 1.9.4. Can we hope for? ;-)
I still remain (my world) with MC 1.8., because i have there many own blocks and that everything would be lost.
New version : DIYDecorativeBlocks 1.9-4.0.0
Requires MalisisCore 1.9-3.1.0
- Added slopes, corners and sloped corners
Sorry for the delay
These are new types respectively : "slope", "corner", and "slopedCorner". Enjoy
Mods for Minecraft :
MalisisDoors
MalisisBlocks
MalisisAdvert
MalisisSwitches
Do It Yourself Decorative Blocks
Thanks very much!
Today I have no time for testing.
Please, add *json file structure for slopes and corners.
Sloped corner:
"test3" :
{
"type" : "slopedCorner",
"hardness" : 1.5,
"soundType" : "stone",
"material" : "rock",
"textureName" : "mytexture",
"recipe" :
{
"items" : [ ["stick", "", ""],
["", "", ""],
["", "stick", ""] ],
"amount" : 6
}
}
(this resipe is only for testing purpose)
1. In creative mode I have two types of sloped corner, see attached image.
2. When I make this tile from sticks (see recipe), I have only 6 little pieces (attached image: on the right)
3. I'm not abble to do recipe for tile on the left (bigger tile)
How to do it? Thanks very much
---------
edit: maybe something about "INVERTED" from https://github.com/Ordinastie/MalisisCore/blob/1.9/src/main/java/net/malisis/core/block/component/SlopedCornerComponent.java ?
Now that you mention it, there is no way to specify a recipe to get the inverted one. It's because it is the same block, but the items have different metadata, resulting in different state when place.
When you set a recipe in the JSON, it crafts the ItemStack with default (0) metadata. I need to add way to allow metadata for the crafted item.
As for the textures, there is currently no special way to specify the "sloped" part directly. However you could cheat a little :
The code says to get the bottom, top, front or sides when necessary, and in case they're not specified, to fall back to textureName value. That means if you have textures block, AND textureName, you should be able to have a different texture for the "sloped" part. (Though I haven't tested that.)
Mods for Minecraft :
MalisisDoors
MalisisBlocks
MalisisAdvert
MalisisSwitches
Do It Yourself Decorative Blocks
I tested
"test1" :
{
"type" : "slope",
"hardness" : 1.5,
"soundType" : "stone",
"material" : "rock",
"textureName" : "texture_one",
"textures" :
{
"top" : "texture_two",
"bottom" : "texture_two",
"sides" : "texture_one"
}
},
it seems good. Vertical surfaces have different texture as slope, top & bottom.
------
Many thanks for your work! DIY is my most favorite mod ever.
New version : DIYDecorativeBlocks 1.9-4.1.0
Requires MalisisCore 1.9-3.1.1
- Changed "recipe" element to "recipes". It's now an array to allow multiple recipes for one blocks.
- Added "metadata" element to a recipes.
Edit:I updated the thread to include the new types added in 1.9-4.0.0, as well as the recipe changes. There is also the example pack available for download. Enjoy!
Mods for Minecraft :
MalisisDoors
MalisisBlocks
MalisisAdvert
MalisisSwitches
Do It Yourself Decorative Blocks
Hi, something's wrong..
MC 1.9.+Forge 1887.
In directory "mods" I have DIY 1.9-4.1.0 and Malisiscore 1.9-3.1.1
In directory "ddbpacks" I have only unpacked your "example".
In game, creative mode, I have no block in DIY tab. And I cannot craft no DIY block.
---
edit: connected type block isn't "connected" in both DIY 1.9. - 4.0.0 & 4.1.0
Is the mod showing is the mod list ? Can you post the client log ?
Mods for Minecraft :
MalisisDoors
MalisisBlocks
MalisisAdvert
MalisisSwitches
Do It Yourself Decorative Blocks
Yes, mod is in mod list, see image.
But in game (creative game) "DIY Creative blocks" tab is empty (after "E", inventory).
Logs:
https://mega.nz/#!IVR0iIxT!Yo6Fh--dL7h5OBbJkh7zyACjJYlObWc5ieXPbU7cnogFrom the log :
[17:01:04] [Client thread/ERROR] [ddb/ddb]: Failed to read example.json : com.google.gson.stream.MalformedJsonException: Expected name at line 53 column 3
I messed up the JSON, an extra comma that shouldn't be there. I'll update the link later, but meanwhile, you can edit the JSON yourself.
Edit : Actually, nevermind, already updated it.
Mods for Minecraft :
MalisisDoors
MalisisBlocks
MalisisAdvert
MalisisSwitches
Do It Yourself Decorative Blocks
OK, after removing comma in
"hardness" : 0.8,
your example is OK.
Only connected texture not, see image.
I move forward properly ;-)
Andesite, diorite and granite slabs and stairs:
{
"schodyzulanormal" :
{
"type" : "stairs",
"hardness" : 0.8,
"soundType" : "stone",
"material" : "rock",
"textures" :
{
"top" : "minecraft:stone@1",
"bottom" : "minecraft:stone@1",
"sides" : "minecraft:stone@1"
},
"recipes" :
[{
"items" : [ ["minecraft:stone@1", "", ""],
["minecraft:stone@1", "minecraft:stone@1", ""],
["minecraft:stone@1", "minecraft:stone@1", "minecraft:stone@1"] ],
"amount" : 4
}]
},
"slabzulanormal" :
{
"type" : "slab",
"hardness" : 0.8,
"soundType" : "stone",
"material" : "rock",
"textures" :
{
"top" : "minecraft:stone@1",
"bottom" : "minecraft:stone@1",
"sides" : "minecraft:stone@1"
},
"recipes" :
[{
"items" : [ ["minecraft:stone@1", "minecraft:stone@1", "minecraft:stone@1"] ],
"amount" : 6
}]
},
"schodyzulalestena" :
{
"type" : "stairs",
"hardness" : 0.8,
"soundType" : "stone",
"material" : "rock",
"textures" :
{
"top" : "minecraft:stone@2",
"bottom" : "minecraft:stone@2",
"sides" : "minecraft:stone@2"
},
"recipes" :
[{
"items" : [ ["minecraft:stone@2", "", ""],
["minecraft:stone@2", "minecraft:stone@2", ""],
["minecraft:stone@2", "minecraft:stone@2", "minecraft:stone@2"] ],
"amount" : 4
}]
},
"slabzulalestena" :
{
"type" : "slab",
"hardness" : 0.8,
"soundType" : "stone",
"material" : "rock",
"textures" :
{
"top" : "minecraft:stone@2",
"bottom" : "minecraft:stone@2",
"sides" : "minecraft:stone@2"
},
"recipes" :
[{
"items" : [ ["minecraft:stone@2", "minecraft:stone@2", "minecraft:stone@2"] ],
"amount" : 6
}]
},
"schodydioritnormal" :
{
"type" : "stairs",
"hardness" : 0.8,
"soundType" : "stone",
"material" : "rock",
"textures" :
{
"top" : "minecraft:stone@3",
"bottom" : "minecraft:stone@3",
"sides" : "minecraft:stone@3"
},
"recipes" :
[{
"items" : [ ["minecraft:stone@3", "", ""],
["minecraft:stone@3", "minecraft:stone@3", ""],
["minecraft:stone@3", "minecraft:stone@3", "minecraft:stone@3"] ],
"amount" : 4
}]
},
"slabdioritnormal" :
{
"type" : "slab",
"hardness" : 0.8,
"soundType" : "stone",
"material" : "rock",
"textures" :
{
"top" : "minecraft:stone@3",
"bottom" : "minecraft:stone@3",
"sides" : "minecraft:stone@3"
},
"recipes" :
[{
"items" : [ ["minecraft:stone@3", "minecraft:stone@3", "minecraft:stone@3"] ],
"amount" : 6
}]
},
"schodydioritlestena" :
{
"type" : "stairs",
"hardness" : 0.8,
"soundType" : "stone",
"material" : "rock",
"textures" :
{
"top" : "minecraft:stone@4",
"bottom" : "minecraft:stone@4",
"sides" : "minecraft:stone@4"
},
"recipes" :
[{
"items" : [ ["minecraft:stone@4", "", ""],
["minecraft:stone@4", "minecraft:stone@4", ""],
["minecraft:stone@4", "minecraft:stone@4", "minecraft:stone@4"] ],
"amount" : 4
}]
},
"slabdioritlestena" :
{
"type" : "slab",
"hardness" : 0.8,
"soundType" : "stone",
"material" : "rock",
"textures" :
{
"top" : "minecraft:stone@4",
"bottom" : "minecraft:stone@4",
"sides" : "minecraft:stone@4"
},
"recipes" :
[{
"items" : [ ["minecraft:stone@4", "minecraft:stone@4", "minecraft:stone@4"] ],
"amount" : 6
}]
},
"schodyandesitnormal" :
{
"type" : "stairs",
"hardness" : 0.8,
"soundType" : "stone",
"material" : "rock",
"textures" :
{
"top" : "minecraft:stone@5",
"bottom" : "minecraft:stone@5",
"sides" : "minecraft:stone@5"
},
"recipes" :
[{
"items" : [ ["minecraft:stone@5", "", ""],
["minecraft:stone@5", "minecraft:stone@5", ""],
["minecraft:stone@5", "minecraft:stone@5", "minecraft:stone@5"] ],
"amount" : 4
}]
},
"slabandesitnormal" :
{
"type" : "slab",
"hardness" : 0.8,
"soundType" : "stone",
"material" : "rock",
"textures" :
{
"top" : "minecraft:stone@5",
"bottom" : "minecraft:stone@5",
"sides" : "minecraft:stone@5"
},
"recipes" :
[{
"items" : [ ["minecraft:stone@5", "minecraft:stone@5", "minecraft:stone@5"] ],
"amount" : 6
}]
},
"schodyandesitlestena" :
{
"type" : "stairs",
"hardness" : 0.8,
"soundType" : "stone",
"material" : "rock",
"textures" :
{
"top" : "minecraft:stone@6",
"bottom" : "minecraft:stone@6",
"sides" : "minecraft:stone@6"
},
"recipes" :
[{
"items" : [ ["minecraft:stone@6", "", ""],
["minecraft:stone@6", "minecraft:stone@6", ""],
["minecraft:stone@6", "minecraft:stone@6", "minecraft:stone@6"] ],
"amount" : 4
}]
},
"slabandesitlestena" :
{
"type" : "slab",
"hardness" : 0.8,
"soundType" : "stone",
"material" : "rock",
"textures" :
{
"top" : "minecraft:stone@6",
"bottom" : "minecraft:stone@6",
"sides" : "minecraft:stone@6"
},
"recipes" :
[{
"items" : [ ["minecraft:stone@6", "minecraft:stone@6", "minecraft:stone@6"] ],
"amount" : 6
}]
}
}
I know, block names are for english speaking people strange.. ;-)
I have tons of questions: this might be dumb but
1: Where do I put these zipped files?
2: How do you turn notepad files into json files?
3: If there is no way of turning notepad files into json files then, where can I get a json file writer?
P.S: this is the 1.7.10 version.
1. You must zipped file unpack and move to
c:\Users\*****\AppData\Roaming\.minecraft\ddbpacks\example\ (in Win7)
Subdirectory & *json must have the same name (here: "example")
2. For editing *json is better Notepad++, https://notepad-plus-plus.org/
3. I don't understand. Json file is text file, you can edit this directly.
---
My example is for MC 1.9; DIY *json structure for 1.7.10 isn't compatible!