zhuowei / MCPELauncher

Source code for BlockLauncher, a launcher that patches Minecraft for Android
Apache License 2.0
683 stars 189 forks source link

ModPE Wishlist #329

Open slice opened 8 years ago

slice commented 8 years ago

ModPE Wishlist

If you could be so kind @zhuowei, could you add some more features for us?

(added by zhuowei - I guess this is the official wishlist now? yes)

Level.openInventory(player, inventoryType); //Inventory type would be as follows:
InventoryType.CHEST
InventoryType.ANVIL

Block

QmodsX commented 8 years ago

Its easy to make resource pack manually

sero583 commented 8 years ago

@zhuowei If you make a get function, you really could add a set function like: It gaves Level.getDimension(); but not Level.setDimension(id_of_dimension); Thanks in advance!

aetriusgx commented 8 years ago

Why does Player.getName have to take parameters? No less, why does it take entities as parameters :v?

zhuowei commented 8 years ago

@ShadowMine64 Because local multiplayer

ghost commented 8 years ago

@zhuowei please copy pocketmine's codes so I can host my own server while using Blocklauncher and PocketMine doesn't close anymore please do it I beg u

slice commented 8 years ago

Updated list.

peacestorm commented 8 years ago

Hey, you forgot the entity parameter in Entity.setCanMove(entity, canMove); and in Entity.getCanMove(entity);. :P

Khristian-kun commented 8 years ago

next suggestion: Support of Mobs.json and Vanilla.json for custom mob models (in assets/images/mob/skins/base/)

ghost commented 8 years ago

umm, why are these following functions not working

Entity.setMobSkin() is not working as usual

Entity.setRenderType() is not working but it says ' Entity Render Type 0 does not exist '

Entity.getRenderType() and Entity.getEntityTypeId() is returning -43485162

Entity.getMobSkin() is not fking working

And 1 thing why does this bugs exist? did @zhuowei do something wrong?

TheDiamondYT1 commented 8 years ago

@sliceofcode @zhuowei Add

ModPE.setGameVersion(string);

Level.openInventory(player, inventoryType); //Inventory type would be as follows:

InventoryType.CHEST
InventoryType.ANVIL
//etc
ghost commented 8 years ago

?????? ' ModPE.setGameVersion() ' will crash MCPE and ' Level.openInventory() 'should be ' Player.openInventory() '

Khristian-kun commented 8 years ago

@KairusDarkSeeker ModPE.setGameVersion(string) will edit the version code, for example you can put ModPE.setGameVersion(ModPE.getGameVersion()+ " with " + modname); var modname = "example";

TheDiamondYT1 commented 8 years ago

Second one sounds good but how will ModPE.setGameVersion() crash? It works if you do it correctly in native code, I know from experience. On 10 Jan 2016 04:21, "Kairus Dark Seeker" notifications@github.com wrote:

?????? ' ModPE.setGameVersion() ' will crash MCPE and ' Level.openInventory() 'should be ' Player.openInventory() '

— Reply to this email directly or view it on GitHub https://github.com/zhuowei/MCPELauncher/issues/329#issuecomment-170313069 .

Khristian-kun commented 8 years ago

@RandomAltThingy will works

TheDiamondYT1 commented 8 years ago

We also need ModPE.showPopup(string);

We already have a function to show tip message, but a popup is the text shown when clicking an item. This function is in servers so we should have it here.

ghost commented 8 years ago

Its only for PC

TheDiamondYT1 commented 8 years ago

No it isint...

TheDiamondYT1 commented 8 years ago

@Izaac9236 NO that is a TIP MESSAGE like when clicking stuff in inventory it shows a TIP message popup

aetriusgx commented 8 years ago

Stop. You're hurting our brain cells.

officialmcpro32 commented 8 years ago

Block.setSolidBlock(id,boolean); allpws the player to walkthrough it if true

officialmcpro32 commented 8 years ago

@zhuowei

ghost commented 8 years ago

@minecraftpro32 You mean Block.setWalkable() if true let's player walk on the specified block

TheDiamondYT1 commented 8 years ago

@KairusDarkSeeker


var walk = false;

function modTick(){
   if(Player.getY() == *Block ID* + 2 && !walk){
      Entity.setVelX(Player.getEntity(), 1);
      clientMessage("fuck off my block");
   }
}
officialmcpro32 commented 8 years ago

@RandomAltThingy I mean it's useful for like a tripwire block without jumping

sero583 commented 8 years ago

Add functions to enchant in Players invetory, like enchantItem(id, [enchantment_name, enchantment_level /like sharpness, 3/); Add Level.setBrightnes(x, y, z, brightnes_lvl);

TaQuIt0 commented 8 years ago

Player.enchant(slot,enchant,level); has already been added El ene. 30, 2016 4:00 PM, "sero583" notifications@github.com escribió:

Add functions to enchant in Players invetory, like enchantItem(id, [enchantment_name, enchantment_level /like sharpness, 3/); Add Level.setBrightnes(x, y, z, brightnes_lvl);

— Reply to this email directly or view it on GitHub https://github.com/zhuowei/MCPELauncher/issues/329#issuecomment-177315809 .

officialmcpro32 commented 8 years ago

Item.setMaxUseDuration() Entity.getFireTicks() ModPE.setAnimalFood(); Entity.canRotate() Entity.setTamable()

officialmcpro32 commented 8 years ago

It's already there imao @ISAAC300

ghost commented 8 years ago

wut its not there bruh @officialmcpro32

officialmcpro32 commented 8 years ago

@KairusDarkSeeker It's there on the latest beta

WinningPyro commented 7 years ago

Hey Zhouwei, I also have a few suggestions for some functions you could input into Block Launcher as well. Can you (not forcing you) add: Level.setDimension(dimensionid, dimension type, ground blocks, inner blocks, dimension name) I did get this idea from another guy on the Minecraft Forum, and it was pretty good. The guy said that the dimension id could be the number id of that set dimension that you make up, though you apparently maybe can't use the number 1-3 (as these 3ids, will be Overworld, Nether and the End). The dimension type could be like the type of dimension, specified with the dimension id of the 3 dimension types alredy in the game that I explained before. The'ground blocks' could be the blocks already generated on grind like dirt an grass for instance for the Overworld, and would be specified with blockIDs.'Inner Blocks' would be the blocks underground and in the caves and such for instance in the Overworld, it's technically stone. This'd also be specified with blockID. Lastly,'dimension name' being a stwhere where people can name the dimension and specify it's title name. Entity.canFly(true/false) Even though there's a way to make someone fly, I think, it'd be easier to also do Entity.canFly as we do after all have Player.canFly(1/0) Entity.defineArmor(ent,helmet id, chest plate id, leggings id, boots id); This'd give the entity you want, armour that you want. Level.setWeather(time,weather id); Entity.canFollow(true/false); This would let entity follow the player, even though there's an easy way to do this, it's still be easier.

StudioJR commented 6 years ago

I'd wish a Block.click(x,y,z); Wich simply clicks on a Block at x y z

StudioJR commented 6 years ago

And I don't know if it is already in the list Entity.addItemInventory

slice commented 6 years ago

3 year old issue.

Block.click is kinda vague, but added. Do entities have inventories?

StudioJR commented 6 years ago

@slice Thanks - and yes some Entities have inventorys e.g mobs like horse But I came up with that entity thing cause i had to add an Item to a PlayerInventory in Multyplayermode - and therefore this would be perfect

StudioJR commented 6 years ago

@slice maybe I'm getting you wrong but the Block.click function is not in the modpe_dump where are functions are located

sero583 commented 6 years ago

Is ModPE still alive?

slice commented 6 years ago

@StudioJR Yes, this issue is for requests, not methods that exist already.

@sero583 I haven't touched it for a while (a few years).

sero583 commented 6 years ago

@slice I don't think anyone has since a year or so, we can declare ModPE as dead most likely. The mods we could do on it were so nice, but now it's gone. Well, shotout to @zhuowei for making this possible.

zhuowei commented 6 years ago

@sero583 It's not dead; I'm still working on it

Volsooon commented 6 years ago

hello it would be possible to have a good documentation on Modpe because a lot of documentation is incomplete thank you very much.

sero583 commented 6 years ago

@chocolataulait7 If you don't get what each function does, then you're simply not well enough to use ModPE. The function names are quite obvious and self-explaining. Just dump the functions and you're ready to go.

Volsooon commented 6 years ago

thank you for this quick answer, could you explain me how to make armor in Modpe thank you.

Volsooon commented 6 years ago

Hello I would like to know if the API Modpe works with Minecraft pe 1.6 ???

sero583 commented 6 years ago

@chocolataulait7 I honestly don't know, since it's been a long while I touched ModPE. When it was a thing, like 2014-2015. I barely can remember, it was something like Armor.defineArmor(parameters); . I think first parameter was texture, second name and third a int for it's protection level. You can dump the ModPE functions from BlockLauncher, just have a quick look into it and you could probably do it yourself.

Volsooon commented 6 years ago

Very well thank you I would also like to know if you know how to make inventory ??

Volsooon commented 6 years ago

hello, I would like to know if have always created custom armor if yes can you tell me how to do thank you.

Volsooon commented 5 years ago

hello, @zhuowei i would like to know how to use setGuiblock and if you are going to put back the custom armor thank you

Volsooon commented 5 years ago

Plz

Volsooon commented 5 years ago

Plz