Everything posted by poopoodice
-
I can see through the world like in spectator mode
Set the render type of the block in your client setup using RenderTypeLookup.setRenderLayer(block, rendertype);
-
How can I understand if an Item is a crop?
You can't guarantee that other mods inherits from vanilla classes, I'll say use tags
-
[1.15.2] How do I change the Description/Lore of an item?
ITextComponent.applyTextStyle() in 1.15
-
[1.16.1] How to Register Enchantments?
It looks right : P
-
[1.16.1] How to Register Enchantments?
Either way of registering should work, and I've never use DeferredRegistrer before but it shouldn't be different from others like items and blocks. Same if you are using registry events.
-
[1.16.1] How to Register Enchantments?
ForgeRegistries.ENCHANTMENTS
-
[1.16.1] Mappings?
I'm not so sure about this either but when I last check the version with forge bot in discord it is 20200723-1.16.1
-
[1.16.1] Mappings?
I'm not so sure about this either but when I last check the version with forge bot in discord it is 20200723-1.16.1
-
[1.15.2] Perform Action when Recipes Loaded or Reloaded
Reload Listener sounds like it
-
[1.15.2] How do I change the Description/Lore of an item?
You can use setStyle to set the text's style or just use for example applyTextStyle(TextFormatting.RED)
-
[1.15.2] How do I change the Description/Lore of an item?
You can add things like StringTextComponent, TranslationTextComponent.. etc that inherits from ITextComponent to the list, see how vanilla does it. If you are using the event (for some special reasons?) you can use event.getToolTip() to get the list of tooltips which got from addInformation(), and use List.add() to add new tips just like above.
-
1.16.1 Item Disappearing
You can't do that on client.
-
[1.15.2] Replacing ItemStack within container after it was taken.
I think you should be able to do it with Slot.onTake()
-
When to use capabilities for Entities
It allows you to add data on vanilla entities more flexible as well.
-
[1.16.1] [Solved?] Minecraft.objectMouseOver ignores my entity
You need to set the size of your entity type, and call setPosition() which eventually sets the bounding box of the entity.
-
When to use capabilities for Entities
They basically "attaches" extra data that is accessible from other mods, capability can also be apply on the entities that aren't created by you.
-
Noob Question- error encountered
The classes should always starts with a capital letter, and you have an extra comma here "heart_block,"
-
[Solved][1.16.1]How do I send Capability to Client?
Don't send the packet each tick, send it when changes were made or when needed. context.getSender() gives a ServerPlayerEntity, use Minecraft.getInstance().player to get the client player
-
Noob Question- error encountered
Show your main class as well
-
Noob Question- error encountered
1. Show your code 2. Full crash log
-
Question about Effect Instances
Check its comment // Forge: Use supplier method instead use the one above it
-
[1.15] Checking the biome at a position crashes the game with NullPointerException: Unexpected Error.
world.getBiome() can be null
-
A basic "Hello world"
BlockEvent.BreakEvent https://mcforge.readthedocs.io/en/latest/events/intro/
-
[1.16.1]Creating an Item Variant
If you mean item model properties: https://mcforge.readthedocs.io/en/latest/models/overrides/ ItemModelsProperties.java
-
[1.15] Synchronize a float between the server and client.
You don't really need a packet just to sync a float, just convert it to int (maybe times it by 100, I don't know) and use trackInt() or trackIntArray() in Container.
IPS spam blocked by CleanTalk.