I am on BlockLauncher beta 1.5.5 and this script imports but comes up with an error when I use my hand to tap a sign with hello in the first line and 9 diamonds are in the first slot of my inventory. Is there a bug with Level.getSignText or is there something I did wrong?
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==0 && Level.getSignText(x,y,z,0)=="hello" && Player.getInventorySlot(0)==264 && Player.getInventorySlotCount(0)==9)
{
addItemInventory(264,-9);
Player.setArmourSlot(0,310);
Player.setArmourSlot(1,311);
Player.setArmourSlot(2,312);
Player.setArmourSlot(3,313);
clientMessage("The trade has been successful!");
}
}
I would have posted the script in colour like you but I don't know how to.
You're checking if the player isn't holding anything and is holding item 264 - this will never be true. The player can't hold nothing and hold something at the same time!
Maybe just check if the player is holding 264?
By the way, for syntax highlighting, use
[code]
tags. I.e. at the beginning, write [ code ] (remove the spaces), and at the end, write [ / code ]
If the first slot in the player's inventory is diamond, the item/block which they are holding doesn't necessarily have to be the first slot item. For example the item in the first slot of my inventory could be a diamond, but the item that I am actually holding could be raw chicken. If the first item in my inventory is always the item that I am holding, then Player.getInventorySlot(0) would be useless and it would be the same as Player.getCarriedItem. I could be wrong, but this is my point of view.
I pushed a new version of Chin (trad) to GitHub. Check the commit description yourself. (Just a link to give you convenience: https://github.com/zhuowei/MCPELauncher )
According to my experience, you should upload the new version sooner because I am 99.9999999% sure many people would spam at comments on Google Play that the translation is rubbish.
BTW What is parameter no. 1 in deathHook when a mob dies because of non-player reasons? (like a zombie burnt to death because of the sun)
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
I pushed a new version of Chin (trad) to GitHub. Check the commit description yourself. (Just a link to give you convenience: https://github.com/zhuowei/MCPELauncher )
According to my experience, you should upload the new version sooner because I am 99.9999999% sure many people would spam at comments on Google Play that the translation is rubbish.
BTW What is parameter no. 1 in deathHook when a mob dies because of non-player reasons? (like a zombie burnt to death because of the sun)
If the first slot in the player's inventory is diamond, the item/block which they are holding doesn't necessarily have to be the first slot item. For example the item in the first slot of my inventory could be a diamond, but the item that I am actually holding could be raw chicken. If the first item in my inventory is always the item that I am holding, then Player.getInventorySlot(0) would be useless and it would be the same as Player.getCarriedItem. I could be wrong, but this is my point of view.
I see. In that case, the mistake is very simple: setArmorSlot is not spelled setArmourSlot
I see. In that case, the mistake is very simple: setArmorSlot is not spelled setArmourSlot
Not landscape only. There is portrait.
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
Why do you need separate translations for landscape and portrait? The Simplified Chinese translation, for example, works in both portrait and landscape.
Why do you need separate translations for landscape and portrait? The Simplified Chinese translation, for example, works in both portrait and landscape.
Because of \nCompare them. There are some extra \n's in the folder without -land. (for portrait and square)
BTW What does square mean? I only know portrait and landscape but I saw "square" in ADT.
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
I know when we open a .mod file blocklauncher imports it in AndroidManifest.xml, but why don't you also add support for .js files too?
Rollback Post to RevisionRollBack
I can be found on Freenode IRC channels #pocketmine, #ModPEScripts, #LegendOfMCPE, #pmplugins or #BeaconMine.
I am a PocketMine-MP plugin developer. I hate it when people think that I love stupid admin positions. Being an admin is nothing compared to being a plugin developer.
I am also a main developer of BlockServer, a work-in-progress MCPE server software. You are welcome to download it, but it so far onlly spawns you in the upther (above the world). You can chat, though.
I do not own this server but I just love to put this banner here:
will texture packs sill be possible? no terrain.png anymore
also there are sounds in tbe apk but they are the ios version sounds and dont appear to be used (still seems to use built in sounds).
will texture packs sill be possible? no terrain.png anymore
also there are sounds in tbe apk but they are the ios version sounds and dont appear to be used (still seems to use built in sounds).
Is it on Google Play Store?
I m not going to update for now because I see that there is no terrain.png and I ll wait until 500ISE makes a BlockLauncher support for 0.8.0
It's resource pack based now, I guess.
I will not release a BlockLauncher beta for snapshots. When the real release arrives, I will update.
I'm not shure if it's me, but if I have a new- block adding script it crashes me when I load up a world, even if I use your script! PLEASE give me a fix!
function useItem(x,y,z,itemId,blockId,side)
{
if(itemId==0 && Level.getSignText(x,y,z,0)=="hello" && Player.getInventorySlot(0)==264 && Player.getInventorySlotCount(0)==9)
{
addItemInventory(264,-9);
Player.setArmourSlot(0,310);
Player.setArmourSlot(1,311);
Player.setArmourSlot(2,312);
Player.setArmourSlot(3,313);
clientMessage("The trade has been successful!");
}
}
I would have posted the script in colour like you but I don't know how to.
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]
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYou're checking if the player isn't holding anything and is holding item 264 - this will never be true. The player can't hold nothing and hold something at the same time!
Maybe just check if the player is holding 264?
By the way, for syntax highlighting, use
tags. I.e. at the beginning, write [ code ] (remove the spaces), and at the end, write [ / code ]
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]
According to my experience, you should upload the new version sooner because I am 99.9999999% sure many people would spam at comments on Google Play that the translation is rubbish.
BTW What is parameter no. 1 in deathHook when a mob dies because of non-player reasons? (like a zombie burnt to death because of the sun)
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWhy make the translation landscape-only?!
I see. In that case, the mistake is very simple: setArmorSlot is not spelled setArmourSlot
Not landscape only. There is portrait.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumWhy do you need separate translations for landscape and portrait? The Simplified Chinese translation, for example, works in both portrait and landscape.
Because of \nCompare them. There are some extra \n's in the folder without -land. (for portrait and square)
BTW What does square mean? I only know portrait and landscape but I saw "square" in ADT.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumNo. PocketInvEditor will get support, though.
I'll split the line into two for the next release.
Because JS files should be opened by text editors.
also there are sounds in tbe apk but they are the ios version sounds and dont appear to be used (still seems to use built in sounds).
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIt's resource pack based now, I guess.
I will not release a BlockLauncher beta for snapshots. When the real release arrives, I will update.
does that mean we will have support for textures AND sound packs now?
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]
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumCheck out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Lead developer of Dragonet!
Check out my game, Adventuria!
Dev of (IMO the best server ever) TwilightGamez!
good luck