How to use events
Coorrdinates x, y and z can be set using coordinates of event location. These are i, j and k. If you leave i, j and k, result of event will happen on the location of event trigger.
You can also use mathematical operations in x, y and z window. Example: This will place dirt block 6 blocks above location of event. Here is advanced example: y: j + (int)(Math.random()*10) This will do something from 0 to 10 blocks above location of event. We achieve this using this part of code: (int)(Math.random()*10) You can also change range of random. This will give random number from 5 to 10: (int)(Math.random()*5)+5 You can use this mathematical expressions: +, -, * and /. You can also check remainder of the division like this: 3%2 This would give you 1 because 3/2 = 1 + (1 remainder) You can find more functions similar to random on this website. List of operators can be found on this website. This will make explosion on the location of event with power of explosion based on height of event location. For example on level 120 this explosion will have power 120*4. This amount of power would most likely freeze computer. This example would hurt entity that triggered event based on half of current height. If entity would be at level 50, this will send 25 damage to it. More help at events can be found on MCreator's wiki page.
結果 (
日本語) 1:
[コピー]コピーしました!
How to use eventsCoorrdinates x, y and z can be set using coordinates of event location. These are i, j and k. If you leave i, j and k, result of event will happen on the location of event trigger. You can also use mathematical operations in x, y and z window. Example: This will place dirt block 6 blocks above location of event. Here is advanced example: y: j + (int)(Math.random()*10) This will do something from 0 to 10 blocks above location of event. We achieve this using this part of code: (int)(Math.random()*10) You can also change range of random. This will give random number from 5 to 10: (int)(Math.random()*5)+5 You can use this mathematical expressions: +, -, * and /. You can also check remainder of the division like this: 3%2 This would give you 1 because 3/2 = 1 + (1 remainder) You can find more functions similar to random on this website. List of operators can be found on this website. This will make explosion on the location of event with power of explosion based on height of event location. For example on level 120 this explosion will have power 120*4. This amount of power would most likely freeze computer. This example would hurt entity that triggered event based on half of current height. If entity would be at level 50, this will send 25 damage to it. More help at events can be found on MCreator's wiki page.
翻訳されて、しばらくお待ちください..
