![]() After, add a new AND block and combine both groups. ![]() ![]() Then, duplicate this group of blocks and change every y + 1 to y - 1. Its a lot of blocks, so it can seem complex, but we are simply checking the 9 blocks of the top layer. It is important that you specify that the Event/Target Entity is the entity you kill and the Source Entity is the Player who kills it.Īnyways, as a first time modder, I felt very triumphant that I figured this out on my own, so I felt the need to share it with anyone else who needs help. We will begin by checking blocks of the bottom and top layers. I used 255 as a test, so if you don't want that then you can just delete that whole if/do block. Nice tutorial Im trying to make my custom enchantment compatible with swords and axes but whevener i try to modify the code itself using the import itemstack and adding the line as you stated I keep getting crash, minecraft version is 1.19.4 and mccreator is 2023. If holding Bone meal then if random 0,1 0.3 - then Remove block at x y z Place structure at x y z: Tree Structure. Bone meal prodecure (optional): Make a procedure for your plant: When plant right clicked. In my example, the diamond normally has a 5% chance to drop, a 25% chance with Looting 1, a 45% chance with Looting 2, a 65% chance with Looting 3, and a 100% chance with Looting 255. Hi users, this is a tutorial on how to make your own working sapling Make a plant. Replace the number after "Random [0,1) <" with the chance you want and the number after "Item in main hand of Source Entity" with the level of Looting. I mainly used this with vanilla mobs as trying to edit their loot table was very confusing for me. This will hopefully help some of you better plan your procedure structure for your next mo. Replace "Stray" at the top with any mob you want. Today we are going to take a look at how procedures actually work. The very top part without the "Get level of enchantment" blocks is just an ordinary random chance item drop procedure, everything else after that is the chance with looting. I also used 2023.1 for this, but I don't see why this wouldn't work for other versions. If you want it to have a chance drop multiple items with Looting, add another "Spawn item/gem" block underneath. Keep in mind that this is for if you want the mob to drop only one of your item with a higher chance when you use Looting. (As I made for my mod Farm Adventure), but you have just to get x, y z (with global variables) when player execute /sethome (for example), and when player execute /home you teleport him to the coordonates. So if you want to use an item-dropping procedure instead of a loot table, this is what you have to do. Nice tutorial And you can use the same procedure for make a /home command. I'm not sure who needs to see this, but I know I definitely would have liked to have known this when I started, as I had a lot of trouble trying to get Looting to affect loot tables.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |