Can anyone giv me a list of all hooks and what they do
Like EntityAddedHook
useItem(x, y, z, itemid, blockid, side, itemdamage, blockdamage); // tap a block
destroyBlock(x, y, z, side); // destroy a block
newLevel(haslevel); // create new world
leaveGame(); // left the game
attackHook(attacker, victim); // hit an entity
modTick(); // runs every 1/20 of a second
procCmd(text); // when entering a command
deathHook(attacker, deadvictim); // kill an entity
entityRemovedHook(entity); // entity was removed
entityAddedHook(entity); // entity was added
levelEventHook(player, eventtype, x, y, z, data); // ?
blockEventHook(x, y, z, type, data); // ?
All of the hooks, pulled from the source. Alot of them.
And yes, there is an entityAddedHook.
A few suggestions:
What about new Hook onNetherReactorActivated(x,y,z)?
Surely BlockLauncher would listen that? Of course we can do it with getTile(int...) and useItem(int...), but isn't it better to add that?
If so, what about getTileEntities(netherReactorX,y,z)?
Also, can you extend the setItem functions, such that there are setMob(int id, String skin, int renderType, int defaultHalfHeart), setProjectile(int id, String texture, int physicsType(maybe arrow/snowball/egg?), setBlock(int id,File textureSide1,File textureSide2,File textureSide3,File textureSide4,File textureSide5,File textureSide6,int transparencyAsBlockId)? (I know quite difficult or impossible)
Also getTileBrightness(x,y,z)? (more sensible?)
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:
Or run a few threads at one moment. It will have a little delay.
OpenGL can only be accessed from one thread, as far as I know.
I wonder if it's possible to bind the screen texture in another thread... I shall look into it.
I know you can take screenshots quickly since the Android system via SurfaceFlinger can screenshot instantly.
He said he will had custom item png textures, but not from url.
yes but then two different mods won't conflict with eachother because you can't use both the item.pngs. so if one sets the item.png then another one sets it the first ones custom items won't have a texture.
Heh, possible. Maybe look for other glReadPixels alternatives..? Or do it a hacky way: use SufaceFlinger directly!
EDIT: about the encoder; I found an library called "Monte Media".
As far as I know access to SurfaceFlinger requires root access, so we need to take the video before it is sent to the Flinger.
If this is possible, I would prototype it first with Android 4.3's builtin encoder and muxer.
I've added ModPE scripts support for clients connecting to local Wi-Fi games (previously, only the host can run scripts). This is highly experimental, so if it breaks, report it.
Also, I've added a ModPE.joinServer method so scripts can exit the current world and teleport to another server.
The Redstone script needs to be installed on the host, I believe. Some other scripts, such as anything modifying inventory, would need to be installed on the client. Still others, such as scripts adding custom items, need to be installed on both client and server.
Tested scripts on local wifi using beta http://tinyw.in/bl All scripts worked perfectly for client & server. If someone else could test on realms & ip direct connect please, to make sure scripts are disabled? 500ISE looking forward to this being rolled out to bl pro?
Will it be possible to do recognize GUI actions? e.g. button presses, drags, and gui taps?
Also, create our own GUI? (Through blocklauncher of course, not through game coding.)
Tested scripts on local wifi using beta http://tinyw.in/bl All scripts worked perfectly for client & server. If someone else could test on realms & ip direct connect please, to make sure scripts are disabled? 500ISE looking forward to this being rolled out to bl pro?
Just tested the beta on realms. Scripts are disabled. So it works as expected.
Can you add support for realms and IP servers cause I need to get some blocks that are not in the creative or survival so plz add support for realms and IP servers
Hmm would there be a way, with the use of ModPE Scripts to make an image appear on the screen?
Like if you use a stick, it opens the image or something on the screen, and using the stick again exits it?
(Idea for block launcher ._. )
Hmm would there be a way, with the use of ModPE Scripts to make an image appear on the screen?
Like if you use a stick, it opens the image or something on the screen, and using the stick again exits it?
(Idea for block launcher ._. )
No, otherwise all clients will be able to use it, and if you use it in the middle of a server it may crash it.
And if there are LOADS of scripts on the server... KABOOM.
And also its cheating.
As I suggested before, BlockLauncher can have an option to make the LAN server only BL-joinable i.e. vanilla MCPE cannot detect the server. Then the joiners must have BlockLauncher installed; these devices automatically enable the script downloaded from the server.
This is tricky, but possible and not too difficult to make.
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:
Search for UTK on minecraftforums. It has a share/install maps fx.
You mean like a toast message?
Like print()?
Or a popup?
As I suggested before, BlockLauncher can have an option to make the LAN server only BL-joinable i.e. vanilla MCPE cannot detect the server. Then the joiners must have BlockLauncher installed; these devices automatically enable the script downloaded from the server.
This is tricky, but possible and not too difficult to make.
500ise could you update the double tap sprinting addon please
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumAsk KsyMC.
All of the hooks, pulled from the source. Alot of them.
And yes, there is an entityAddedHook.
"one does not simply hook Creeper::getMaxHealth"
-
View User Profile
-
View Posts
-
Send Message
Curse Premium- Only gets fired when a door is opened
- Gets fired every 3 seconds by chests to announce their open-closed state
What about new Hook onNetherReactorActivated(x,y,z)?
Surely BlockLauncher would listen that? Of course we can do it with getTile(int...) and useItem(int...), but isn't it better to add that?
If so, what about getTileEntities(netherReactorX,y,z)?
Also, can you extend the setItem functions, such that there are setMob(int id, String skin, int renderType, int defaultHalfHeart), setProjectile(int id, String texture, int physicsType(maybe arrow/snowball/egg?), setBlock(int id,File textureSide1,File textureSide2,File textureSide3,File textureSide4,File textureSide5,File textureSide6,int transparencyAsBlockId)? (I know quite difficult or impossible)
Also getTileBrightness(x,y,z)? (more sensible?)
Also pls add parameter to Level.explode():
x,y,z,radius,isInWater
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumIf you have Android 4.3, just use the built-in MediaCodec and MediaMuxer classes.
Otherwise, check on-line for ways to use FFMPEG in Android.
By the way, I tried taking just screenshots, and it took a ridiculous amount of time per frame, so if you are going to try it, don't use glReadPixels.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumOpenGL can only be accessed from one thread, as far as I know.
I wonder if it's possible to bind the screen texture in another thread... I shall look into it.
I know you can take screenshots quickly since the Android system via SurfaceFlinger can screenshot instantly.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumAs far as I know access to SurfaceFlinger requires root access, so we need to take the video before it is sent to the Flinger.
If this is possible, I would prototype it first with Android 4.3's builtin encoder and muxer.
Also, create our own GUI? (Through blocklauncher of course, not through game coding.)
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumYay!
Anyways, http://tinyw.in/bl Amazon support.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumLike if you use a stick, it opens the image or something on the screen, and using the stick again exits it?
(Idea for block launcher ._. )
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015
Search for UTK on minecraftforums. It has a share/install maps fx.
You mean like a toast message?
Like print()?
Or a popup?
As I suggested before, BlockLauncher can have an option to make the LAN server only BL-joinable i.e. vanilla MCPE cannot detect the server. Then the joiners must have BlockLauncher installed; these devices automatically enable the script downloaded from the server.
This is tricky, but possible and not too difficult to make.
King of Page 62 just because I write long posts.
-
View User Profile
-
View Posts
-
Send Message
Curse PremiumGUI? It is on my to-do, however not in the nearest future (:
Yep, couldnt find the right wording, awesome.
Check out my game! It's an open-world, sandbox text adventure.
Follow @hexdro_
Hexdro © 2012-2015