Everything posted by ThatGuyDavid
-
[1.16.3] 1.16 replacement for Minecraft.getInstance.ingameGUI.blit?
I am trying to render an overlay, and Minecraft.getInstance.ingameGUI.blit() apparently is no longer a function. Does anyone know what the replacement for it is?
-
[1.16.3] How to create armor piece with IForgeItem?
That worked, thank you!
-
[1.16.3] How to create armor piece with IForgeItem?
I put the @Override method in my item class, but it did not work. I implemented it like this: package com.thatguydavid09.glasses.items; import com.thatguydavid09.glasses.Glasses; import net.minecraft.entity.monster.EndermanEntity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; public class SunglassItemBase extends Item { public SunglassItemBase() { super(new Item.Properties().group(Glasses.TAB)); } @Override public boolean isEnderMask(ItemStack stack, PlayerEntity player, EndermanEntity endermanEntity) { return true; } } and registered it like this: public static final RegistryObject<Item> SUNGLASS_LENS = ITEMS.register("sunglass_lens", SunglassItemBase::new); Did I do something wrong?
-
[1.16.3] How to create armor piece with IForgeItem?
I would like the ArmorItem to have the property of isEnderMask to be true, and I don't see how I can do that.
-
[1.16.3] How to create armor piece with IForgeItem?
After a lot of searching and trial and error, I would like to know if it is possible to create custom armor similar to using IArmorMaterial but using IForgeItem.The reason I want to do this is because IForgeItem has some fields that IArmorMaterial does not, and I would like to use those while maintaining the same fields that IArmorMaterial has. (IForgeItem#isEnderMask in particular) Any help would be appreciated.
-
[1.16.3] How to make endermen not get angry at player if certain item is on player's head?
The title says it all. I would like to know how to make it so that when an item is on a player's head, endermen no longer get angry if the player looks at them. Any help would be greatly appreciated.
-
[1.16.3] Texture for custom glass block won't load
That worked. Thank you!
-
[1.16.3] Texture for custom glass block won't load
I am having an issue when creating a new block in my mod. The blocks blockItem texture renders correctly, but the game does not texture the block. It displays in game with the default texture. I have double and triple checked all relating JSON files and the Java file that creates the block, but the game still does not render the texture correctly. Here is the log: https://pastebin.com/cuDWrckB, and here is my code: https://github.com/ThatGuyDavid09/glasses_mod/tree/master/glasses_mod. The items are registered in the util/RegistryHandler.java file. Any help would be immensely appreciated.
IPS spam blocked by CleanTalk.