I mean, my method would, in this case, be more accurate... and, since you're getting false for the boolean, and the fact that my method says CLIENT, then only the client runs, which means you need to start sending packets!
Some events are only read by the logical client, or logical server, or both, depending on the result of the event. Therefore, if only a client responds, you need to send packets to the logical server telling it to perform certain code that the client is not responsible for performing, like @diesieben07 mentioned.
NOTE: if you perform server-side code on client-side, it may not work... packets...
You can yes, but you shouldn't. If you have all the data you need at compile time, then just generate the json files.
As for your second question, we're looking into it, but due to how the recipe book works, you need to specify all sub-items in recipes.
You don't need to mess with individual if-statements.
All of these crops extend BlockCrops
Check if the block extends BlockCrops, then cast it. From there, call BlockCrops::isMaxAge(IBlockState), if so, call BlockCrops::withAge(0) to get a new IBlockState of the crop, with age of 0.
When it comes to adding new block and items, there are plenty of guides and tutorials, but I'm having a really hard time finding out how to properly edit blocks and items from Vanilla Minecraft. I just found how to remove old recipes, because all my searches lead to tutorials for new blocks and items because of keywords.
Anyways, here's what I want to do next:
Change the icons of Iron tools and armour to something new, since I will be using those for Steel tools and armour.
Change old tools and armour to new toolMaterials and armorMaterials (which I have already added)
Change old blocks to different harvestLevels (I have added pickaxes with levels 4 and 5)
Change Obsidian to drop a certain quantity of items
I don't think these should be too difficult to actually code, I'm just having a real hard time searching for this specific information in the ocean of basic tutorials. If anyone can point me in the right direction, that'd be awesome.
Thanks!
When it comes to adding new block and items, there are plenty of guides and tutorials, but I'm having a really hard time finding out how to properly edit blocks and items from Vanilla Minecraft. I just found how to remove old recipes, because all my searches lead to tutorials for new blocks and items because of keywords.
Anyways, here's what I want to do next:
Change the icons of Iron tools and armour to something new, since I will be using those for Steel tools and armour.
Change old tools and armour to new toolMaterials and armorMaterials (which I have already added)
Change old blocks to different harvestLevels (I have added pickaxes with levels 4 and 5)
Change Obsidian to drop a certain quantity of items
I don't think these should be too difficult to actually code, I'm just having a real hard time searching for this specific information in the ocean of basic tutorials. If anyone can point me in the right direction, that'd be awesome.
Thanks!