Can someone explain me how to get the texture???
Example:
If I want Soul Sand, using ID 187, how do I get the texture, I dont understand <<<derp
The script for adding soul sand would be :
Block.defineBlock(187, "Soul Sand", 104);
104 is the texture ID for soul sand. As 500ISE said in the original post, you start at the top left and count right. Once you reach the top right edge, you start again at the left on the second one down, and keep counting.
I'm back for making a clan in the game called "ROBLOX."
Now I'm going to make mod again
Didn't script like 3 months..
Hope my Skills isn't bad..
Rollback Post to RevisionRollBack
What is love? Could I get one? Could I make one? Could I have one? Could I have it on my school?
Does it hurt? Does it have a pain? Does it nice? Does it feel happy? Does it make you better?
Maybe I can have one. Maybe I will get one. Maybe I can fell it. Maybe I can touched it.
All of I do is scripting to work on my program. Never be more than this.
104 is the texture ID for soul sand. As 500ISE said in the original post, you start at the top left and count right. Once you reach the top right edge, you start again at the left on the second one down, and keep counting.
Well, in the Minecraft PC soul sound is acutely a bit smaller than normal blocks. So you should use
Oh yeah, I made a small tool for you people that are finding hard to use this. http://pemod-list.com/custom_block.html
Be aware, it is still in development (sorry for no CSS styling) and I still have to add things (example: opaque blocks)
You can always use the update blocks, etc as alternatives anyway
Or .name block aka invisible bedrock
Rollback Post to RevisionRollBack
Make sure you follow me on twitter! @DarkDiaMiner IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
But what if you had one carpet texture, and you want to re-colour it for different carpet types?
Well, Block.setColor to the rescue!
Here's part 3 of the tutorial, where I explain some random stuff that's left over.
Block.setColor allows you to re-colour different textures - for example, I used it to re-colour the clay texture for the coloured clay mod.
Block.setColor(id, colours)
Colours is an array of colour values. the bottom 8 bits specify blue, the next 8 bits specify green, and so on: it's the same as HTML colour codes.
So, if I wanted to create a purple ore, I can do
Block.defineBlock(187, "Ore of evil", [[3, 2]]);
Block.setColor(187, [0xff00ff]);
If you put more elements in the array, those damage values will get different colours.
Block.setLightValue(id, level)
Sets the light level. Level is an integer from 0 to 15 - so if you want full brightness for our ore of evil,
Block.setLightValue(187, 15);
Our completed ore of evil:
Block.setRenderLayer(id, layer)
Some semitransparent blocks needs to render on a different layer to blend - for example, water renders on layer 2, glass renders on layer 1.
After overriding the breaking mechanic to drop purple dye, I now have purple ore of evil!
Here's the script. It also uses item ID 187, so don't activate it with the previous script. https://raw.github.c...0ise_evilore.js
Finally, abusing the custom block API. None of these ideas are recommended, of course. They may break in a future BlockLauncher release. (Some of these tricks were discovered by Byteandahalf - thanks)
- Custom blocks can overwrite existing blocks.
- Block.setShape, Block.setDestroyTime, Block.setExplosionResistance, and Block.setLightLevel will work on existing Minecraft PE blocks
- If you don't want your block to be placeable, use ModPE.setItem with the block's ID to override its item when held.
Future additions:
- Render Types - Minecraft has special shapes for some blocks, such as crosses for flowers. I've added render type setup to the latest beta: go to https://github.com/C...ki/Render-types for a list of block rendering types (scroll down).
If you want a demo script, grab the beta at http://tinyw.in/bl and run https://raw.github.c...e_rendertype.js (this uses ID 187 as well, so disable the other scripts)
This doesn't work on 0.8.1 right? or am i doing it wrong?
var ini=false;
function selectLevelHook()
{
if(!ini)
{
Block.setColor(30, [0xff00ff]);
ini=true;
}
}
function useItem(x,y,z,itemId,blockId,side)
{
if(blockId)
{
Block.setColor(blockId, [0xff00ff]);
}
}
Oh yeah, I made a small tool for you people that are finding hard to use this. http://pemod-list.co...stom_block.html
Be aware, it is still in development (sorry for no CSS styling) and I still have to add things (example: opaque blocks)
for the color you need to add [ and ] around it still, but other then that its amazing!
The script for adding soul sand would be :
104 is the texture ID for soul sand. As 500ISE said in the original post, you start at the top left and count right. Once you reach the top right edge, you start again at the left on the second one down, and keep counting.
That's correct.
ps your awsome
Custom items, custom blocks...
What is next?
Custom entitys?
Haha...that would be also very cool.
# specifies that the number coming after it is in hex format in CSS. In JavaScript, 0x is used to signify this.
I'm back for making a clan in the game called "ROBLOX."
Now I'm going to make mod again
Didn't script like 3 months..
Hope my Skills isn't bad..
Does it hurt? Does it have a pain? Does it nice? Does it feel happy? Does it make you better?
Maybe I can have one. Maybe I will get one. Maybe I can fell it. Maybe I can touched it.
All of I do is scripting to work on my program. Never be more than this.
Oh yeah, I made a small tool for you people that are finding hard to use this. http://pemod-list.com/custom_block.html
Be aware, it is still in development (sorry for no CSS styling) and I still have to add things (example: opaque blocks)
Link Removed
Link Removed
You can always use the update blocks, etc as alternatives anyway
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Or .name block aka invisible bedrock
IF I post a mod download it and give me a +1 if you appreciate.
Make sure you give me a suggestion at my WIP topic darkPE
Make sure you click on that +1 button if I help you! ---------------->
This doesn't work on 0.8.1 right? or am i doing it wrong?
for the color you need to add [ and ] around it still, but other then that its amazing!
Want GUI Templates? Done!
https://github.com/BeATz-UnKNoWN/ModPE_Scripts/wiki/ModPE-Script-Templates
P.S. Feel free to follow me so you know when I post "awesome" content and make the MCForums a brighter place (totally).
If you need to contact me you can either shoot a Kik message to beatz_unknown or send an email to [email protected]
WOW! i never thought of that, duh!
Thanks man!
:D: <--- That's a happy and a sad face
Terrain still exists, its just terrain.tga and items.png is items-opaque.png
This method of creating custom blocks still works?
Link Removed
Link Removed