Yes. It's the same as assigning an object to a var. Also packaves are just variables in Rhino. Can't you assign variables to variables?
So in Java
import java.io.BufferedReader;
in JavaScript
var BufferedReader = java.io.BufferedReader;
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:
Yes but that is just the way I do it. In rhino there is supposed to be an importPackage() function but it seems to be included in 500ISE's small.js
So if i wanted to make a mod that spawned emerald ore, how would i write that? like x, y, z, block id?
Rollback Post to RevisionRollBack
Please give me an Internet. Please. Pretty Please with sprinkles on top
I have a twitter!! Follow me for regular updates on my mods! https://twitter.com/DamienMiller11
This is amazing! You get... Drum role please! *random guy drum rolling* a +1! Job we'll done sir. Also, your ModPE tutorial series from YouTube really helped me.
So if i wanted to make a mod that spawned emerald ore, how would i write that? like x, y, z, block id?
It depends on what you mean. Do you want it to randomly spawn? You will have to create your own algorithm for that. What this library does is basically adds a new way to make structures without repetitive setTile() functions.
It depends on what you mean. Do you want it to randomly spawn? You will have to create your own algorithm for that. What this library does is basically adds a new way to make structures without repetitive setTile() functions.
So wait dont you have to choose where the blocks spawn? Is it possible to randomise the block spawn though?
Rollback Post to RevisionRollBack
Please give me an Internet. Please. Pretty Please with sprinkles on top
I have a twitter!! Follow me for regular updates on my mods! https://twitter.com/DamienMiller11
So wait dont you have to choose where the blocks spawn? Is it possible to randomise the block spawn though?
yes. You will need to use Math.random() but you will need to do a little more research on that since it's also very possible for it to get a value of 0.3343454398 or something like that.
If you look at the code for my Generated Structures mod you will see a function in there that generates a random number.
yes. You will need to use Math.random() but you will need to do a little more research on that since it's also very possible for it to get a value of 0.3343454398 or something like that.
If you look at the code for my Generated Structures mod you will see a function in there that generates a random number.
yeah ive taken a look at that. Thanks!
Rollback Post to RevisionRollBack
Please give me an Internet. Please. Pretty Please with sprinkles on top
I have a twitter!! Follow me for regular updates on my mods! https://twitter.com/DamienMiller11
Well... LOL!I hadn't been coding with ModPE for weeks/months except to @tombailey's McpeScripts repo!
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:
Remember, guys! The tool is there to help you create .xtr files. DO NOT ATTEMPT TO WRITE XTR FILES YOURSELF! I will upload a video on how to use StructureJS later if anybody would like that.
Remember, guys! The tool is there to help you create .xtr files. DO NOT ATTEMPT TO WRITE XTR FILES YOURSELF! I will upload a video on how to use StructureJS later if anybody would like that.
What would happen if you did? And did you make a video?
Please give me an Internet. Please. Pretty Please with sprinkles on top
I have a twitter!! Follow me for regular updates on my mods! https://twitter.com/DamienMiller11
Yes but that is just the way I do it. In rhino there is supposed to be an importPackage() function but it seems to be included in 500ISE's small.js
Link Removed
Link Removed
You get... Drum role please! *random guy drum rolling* a +1!
Job we'll done sir.
Also, your ModPE tutorial series from YouTube really helped me.
Soon to be ModPE Script Developer.
So if i wanted to make a mod that spawned emerald ore, how would i write that? like x, y, z, block id?
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
I'm always glad to know I helped somebody
It depends on what you mean. Do you want it to randomly spawn? You will have to create your own algorithm for that. What this library does is basically adds a new way to make structures without repetitive setTile() functions.
Link Removed
Link Removed
So wait dont you have to choose where the blocks spawn? Is it possible to randomise the block spawn though?
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
yes. You will need to use Math.random() but you will need to do a little more research on that since it's also very possible for it to get a value of 0.3343454398 or something like that.
If you look at the code for my Generated Structures mod you will see a function in there that generates a random number.
Link Removed
Link Removed
yeah ive taken a look at that. Thanks!
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
Link Removed
Link Removed
Link Removed
Link Removed
alright I will upload one tomorrow
Link Removed
Link Removed
I tried the sample one you made and that didn't work.
Of course....
What would happen if you did? And did you make a video?
I have a twitter!! Follow me for regular updates on my mods!
https://twitter.com/DamienMiller11
It won't let me download D: I need this
Lol, this siggy was so cringe, 2013 me was cringe