-
(1.16.5) Draw colored outline for item in GUI
Item may be both mine or vanilla As title says, I want to render it in GUI yes, ItemStack Current render code this.itemRenderer.zLevel = 100.0F; for (ResearchTableEntity.ItemState state : container.researchTableEntity.getItemStates()) { this.itemRenderer.renderItemAndEffectIntoGUI(this.minecraft.player, state.item, tableRect.x + state.pos.x - 8, tableRect.y + state.pos.y - 8); } this.itemRenderer.zLevel = 0.0F;
-
(1.16.5) Draw colored outline for item in GUI
Is there any built-in way to do that? I also have an Idea to render 8 single-color copies of item model around original one, but in this case I need to find a way to render a single-color item (i.e. no texture, just a silhouette)
-
[SOLVED] I need help at making a tooltip for 1.16.5
Remove that ".getDefaultInstance();" from your Geilomaticer.java at all
-
[SOLVED] I need help at making a tooltip for 1.16.5
Compile and post the log ๐
-
[SOLVED] I need help at making a tooltip for 1.16.5
Remove public static final RegistryObject<Item> TELE_STICK = ITEMS.register("ender_staff", () -> new Item(new Item.Properties().tab(Geilomaticer.M_GROUP))); Also by saying "replace the content of function makeIcon" I meant the code inside { and }. Your function makeIcon in Geilomaticer.java should look like @Override public ItemStack makeIcon() { return new ItemStack(Iteminit.TELE_STICK.get()); }
-
[SOLVED] I need help at making a tooltip for 1.16.5
Post your code of Iteminit
-
[SOLVED] I need help at making a tooltip for 1.16.5
error 1: "extends Item". I already told you about that error 2: as it says, "variable TELE_STICK is already defined in class Iteminit". You have two variables with same name. Remove one with RegistryObject<Item> error 3: looks weird, let's return to this later error 4: in Geilomaticer.java replace the content of function makeIcon with "return new ItemStack(Iteminit.TELE_STICK.get());" error 5: caused by error 1 error 6: same as 3 error 7: you seem to not add constructor to your ender_staff as I asked earlier error 8: same as 3 error 9: same as 5 error 10: same as 5 P.S. when you apply changes, post your log again. We need an updated version
-
[SOLVED] I need help at making a tooltip for 1.16.5
Then you can share it via pastebin
-
[SOLVED] I need help at making a tooltip for 1.16.5
The console. The place where you found these 7 errors ๐ Copy it's output. This is the log P.S. of course, compile the code first ๐
-
[SOLVED] I need help at making a tooltip for 1.16.5
Can we see the log?
-
[SOLVED] I need help at making a tooltip for 1.16.5
Add " import com.Geilomaticer.Geilomaticers.items.ender_staff;" near other imports in your register class file
-
[SOLVED] I need help at making a tooltip for 1.16.5
Do you have compiler errors or game runs and you just don't see modified tooltip? Also question, do you see your item in game at all?
-
[SOLVED] I need help at making a tooltip for 1.16.5
public static final RegistryObject<Item> TELE_STICK = ITEMS.register("ender_staff", () -> new Item(new Item.Properties().tab(Geilomaticer.M_GROUP))); should be replaced with public static final RegistryObject<ender_staff> TELE_STICK = ITEMS.register("ender_staff", () -> new ender_staff(new Item.Properties().tab(Geilomaticer.M_GROUP)));
-
[SOLVED] I need help at making a tooltip for 1.16.5
ok, thx. Well, I see some things that confuses me. First of all, try to add "@Override" right above "public void addInformation..." Next, your class should extend Item, not item. For compiler they are two different classes. Does it compile, actually? Also I don't see the constructor for your staff. You should add public ender_staff(Properties properties) { super(properties); } right between "public class ender_staff extends Item {" and added "@Override"
-
[SOLVED] (1.16.5) Modify PlayerInventory content from UI on the client
Yes. Player inventory have network part. I have to send messages to server and perform all mouse item modifications there. P.S. no need to perform them on both client and server, server would be enough