![]() NOTE: All of my schematics so far have generated +X +Z away from the sapling, but I don't know if it does this 100% of the time, so double check the direction when you measure your schematic in step 6.ġ0- Hit "Save and build" to save the code and test the sapling in minecraft. tBlockState(new BlockPos(i + 0, j + 0, k - 1), Block.getBlockById(97).getStateFromMeta(8), 3) For example, if my tree schematic generated 3 blocks away in X and 2 in Z, the example code above would change to Kane has a good tutorial on how to do this HERE.ĩ- Edit every section of "new BlockPos(i+#, j+#, k+#)" to align the tree with the sapling. Reading this page is strongly recommended for learning the creation of new procedure blocks. tBlockState(new BlockPos(i + 3, j + 0, k + 1), Block.getBlockById(97).getStateFromMeta(8), 3) Ĩ- If your schematic is supposed to use modded blocks, you need to edit every section of "getBlockById(#)" . To follow the tutorials, you must have some basic knowledge of JSON as well as Googles 'Blocky' visual programming system that MCreator utilizes to make the procedure system possible. You should see a lot of lines of code like this: So for Fortune III, this would be 1/520 (at level three, that means 20 each for 2, 3, or 4 total drops, and the remaining 40 mean no bonus drops, so only one drop total). Count how many blocks in X and Z the base of the trunk is from the sapling, with the block the sapling is on counting as 1.ħ- Edit (with locking) the code of the sapling and scroll to the bottom. The percentage is calculated the same way it is calculated in vanilla, specifically 1/ (Fortune Level+2) for each possible amount of bonus drops. It will take a few times like a normal sapling, but when it grows, it will place the tree somewhere in the +x +z direction away from the sapling. I tried it before and the sapling grew as soon as it was placed on dirt.Ģ- Make a plant or block for the sapling and go to events.ģ- under events, choose "when right clicked on block"Ĥ- add a stack event with the condition "item in player's hand = dye"ĥ- under your stack event, add two more events:ĥ.1-consume item from inventory ->" item to consume=dye" with the condition (in all cases)ĥ.2.1-place schematic with the condition Random possibility= %ĥ.2.2- add block at i, j, k = Ħ- Now go into the test environment and try growing the sapling. These steps will only make a sapling grow when you click on it with bonemeal (although technically, any dye will work, so you can grow trees with ink sacs or lapis lazuli if you really wanted) I am not sure how to make them grow naturally after a time span of more than 10 ticks. If you know how to represent events in the new sequence form, or if you're using old versions of MCreator, then this will work for you. I finally figured out how to get saplings to work- just in time for the event system to change in MCreator.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |