okay, so ive seen a lot of ModPE tutorials that suggest something about custom functions. Dont judge me if im being such an idiot, but is there an actual way to create my very own function? I tried googling "How do I make a custom function for ModPE" and nothing really helpful came up. But if there is a way of making my own function for me, I would like to know.
Custom functions are actually pretty easy and I use Them to simplify repeated code.
P.S. Based from the title, it came out since BlockLauncher 1.6.11... and umm... btw, I didn't check if it still does work on the higher versions... so just test if it works as expected
P.S.S The post is not mine! It's by the famous byteandahalf (lol), who also made the PocketPower.
P.S.S.S umm... another thing... the only (new) functions in the post is to renderCross() and to renderTorch()... and the (new) hook is the renderBlockHook(), which happens when a block is rendered... kind of like an entityAddedHook() but for blocks
P.S. Based from the title, it came out since BlockLauncher 1.6.11... and umm... btw, I didn't check if it still does work on the higher versions... so just test if it works as expected
P.S.S The post is not mine! It's by the famous byteandahalf (lol), who also made the PocketPower.
P.S.S.S umm... another thing... the only (new) functions in the post is to renderCross() and to renderTorch()... and the (new) hook is the renderBlockHook(), which happens when a block is rendered... kind of like an entityAddedHook() but for blocks
Alas it is disabled in the versions released after 0.9. Good find though. All my forum searches tend to leave me more confused than when I start.
I guess we will have to wait for complex blocks. Thanks for linking me to it though!
I am trying to make an item that projects an effect in a linear direction. I am using Entity.getYaw(Player.getEntity).
The result is awkward. The number does not loop back after 360 or 0. When I first used it I got a player yaw angle of over a thousand degrees, 1008.
Is there method to get a more consistent number?
At present I am experimenting with formulas and math functions but my java is limited at I cannot get any of the js coding websites to work right on my tablet. (specificly the code acvademy website)
When I click the linkit opens a viewer type interfaceinstead of downloading it, when I try to save the link I get the same error as above when I try to import it. Any suggestions?
The items are almost invisible in tmi. they are there you can just barely see them. I recommend that he changes them to gold, leather, chain, iron, or diamond texture instead of empty armor slot.
1
I just was able to download it on my tablet with no problems.
0
I see no reason not to create your own version of the food using the default item texture.
As for the armor use Item.defineArmor()
I will see if I can find the syntax for it
0
ModPE.setFoodItem(id, iconName, iconSubindex, halfHearts, name, maxStack);
have you tried using this to define your food item?[/pre]
0
You would need to use the use item hook but other than that it is about that simple.
0
Custom functions are actually pretty easy and I use Them to simplify repeated code.
Function my function(input1, input2, etc)
{
Code here
Return()
}
0
Alas it is disabled in the versions released after 0.9. Good find though. All my forum searches tend to leave me more confused than when I start.
I guess we will have to wait for complex blocks. Thanks for linking me to it though!
0
Are complex blocks possible?
By complex bocks I mean shapes that are more than a single cube. Like a table with legs.
For that matter is it possible to do multiple block angles without multiple blocks? Like torches and pistons.
0
Excellent Suggestion! This concept was able to point me down the path i needed.
Now I can easily determine cardinal direction, assuming sunrise in mcpe is still east, and up and down.
Thank you very much.
Now to find a tutorial on how to do an bject like torches(multiple placement styles in the same block)
0
I hope someonbe has an idea that can help.
I am trying to make an item that projects an effect in a linear direction. I am using Entity.getYaw(Player.getEntity).
The result is awkward. The number does not loop back after 360 or 0. When I first used it I got a player yaw angle of over a thousand degrees, 1008.
Is there method to get a more consistent number?
At present I am experimenting with formulas and math functions but my java is limited at I cannot get any of the js coding websites to work right on my tablet. (specificly the code acvademy website)
0
When I click the linkit opens a viewer type interfaceinstead of downloading it, when I try to save the link I get the same error as above when I try to import it. Any suggestions?
0
0
You posted something?
0
Just wanted to say thank you for porting my favorite MC decorating mod. I look forward to seeing its release.
0
I see a lot of people asking when it will be out for 0.11.1 or getting install errors
You are getting errors because it is still being updated for 0.11.1.
It is not yet ready for the new version of PE.
When it is done it will be released.
I got all this info by reading the thread. Please read threads before asking duplicate questions. I am as impatient as the rest of you. 😹
0
Thank you. That has been confusing me for days.