[1.16.4] what difference between custom slots and EquipmentSlotType
By
Klarks, in Modder Support
-
Recently Browsing
No registered users viewing this page.
-
Posts
-
By <Gl33p_0r4nge> · Posted
Okay I see that no one probably know how but can you at least tell me where should I get the rendered player view? -
I don't know what code I would still be helpful, so here are the relevant classes in my git repo: TextureStitchEvent: https://github.com/Luis-st/Forge-1.16.5-36.0.1-mdk/blob/main/forge-1.16.5-36.0.1-mdk/src/main/java/net/luis/cave/events/other/OnTextureStitchEvent.java BackpackContainer (with custom slot subclass): https://github.com/Luis-st/Forge-1.16.5-36.0.1-mdk/blob/main/forge-1.16.5-36.0.1-mdk/src/main/java/net/luis/cave/common/inventory/container/BackpackContainer.java I think I understood after trying something: my message class requires 3 methods (encode, decode, handle) which I then have to specify when registering the message (parameter 3 - 6). Am I right?
-
By troublemaker_47 · Posted
Can you please tell me how to use the teleportcommand method or its syntax. @diesieben07 -
I'm working on creating a Connection Texture block. I knew I needed to use something like IModelGeometry for that, but I don't know exactly what to do. I would like to refer to ANDESITE_VARIANTS of Create mod ( https://github.com/Creators-of-Create/Create/tree/9d77f85b9442910a3f595c58f41cb3363093384e ). Could you please explain?
-
By DmitryLovin · Posted
Well, I kinda fixed it: for(HeadPack pack:ipack){ Minecraft.getInstance().getResourcePackList().addPackFinder( (infoConsumer, infoFactory) -> { infoConsumer.accept(infoFactory.create(pack.getName(), true,()->pack,pack, new PackMetadataSection(new StringTextComponent(pack.getName()),6),ResourcePackInfo.Priority.BOTTOM,IPackNameDecorator.BUILTIN)); } ); } But it works only after I reload packs or something, keep looking what I did wrong. upd: I guess I still need to add it in ResourceManager manually like before as well: ((SimpleReloadableResourceManager) Minecraft.getInstance().getResourceManager()).addResourcePack(pack); because minecraft do it only when you reload resourcepacks or change them. Can be closed.
-
-
Topics
-
Who's Online (See full list)