Posted June 23, 20223 yr I made a custom Sword Item that should be always pre-enchanted with a specific enchant set via code. Right now I am using the Item#inventoryTick method to show the enchantment (kinda how Enchanted Books does). However this means that every tick the Word tries to get enchanted (of course it fails after the first tick where is actually enchanted), so I guess is not ideal. So what would it be an optimal way to have an enchanted Item in the Creative Inventory where the enchant is not applied every tick? Edited June 23, 20223 yr by JimiIT92 solved Don't blame me if i always ask for your help. I just want to learn to be better
June 23, 20223 yr Author So it means that by deafult the Item should not have a pre-defined Creative Tab set in the Item Properties? Don't blame me if i always ask for your help. I just want to learn to be better
June 23, 20223 yr Author 11 minutes ago, diesieben07 said: If allowdedIn (SIC) returns true for the given tab, fill it with whatever stacks you want. This will make me add "manually" the item stack to the appropriate tab. But if the Item already has a tab set, won't this duplicate it inside the tab? Don't blame me if i always ask for your help. I just want to learn to be better
June 23, 20223 yr Author 48 minutes ago, diesieben07 said: That is what allowdedIn checks for. Didn't know that, I never tried something similar in the past Thanks for the explanation Don't blame me if i always ask for your help. I just want to learn to be better
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.