-
Posts
3284 -
Joined
-
Last visited
-
Days Won
62
Everything posted by ChampionAsh5357
-
List of Minecraft Forge Methods in 1.16?
ChampionAsh5357 replied to Skullblade's topic in Modder Support
Forge Discord: https://discord.gg/UvedJ9m Linkie: https://discord.gg/sCVXYXVcC3 -
List of Minecraft Forge Methods in 1.16?
ChampionAsh5357 replied to Skullblade's topic in Modder Support
Forge migrated to a different set of field/method/param mappings as of the latest RB of the mdk. As such, you can use either the forge-bot on the Forge Discord or Linkie to translate the old mappings (also known as MCP) to the new ones (Mojang). You can also change your mapping set back to MCP, but just be warned that they will not be available for 1.17. -
[DEAD] Armor and Implementing Custom Models
ChampionAsh5357 replied to ChampionAsh5357's topic in User Submitted Tutorials
Yes, I killed everything since people were passing around old outdated links that should not be supported. I'll update this whenever I update the page itself. -
Nope, optifine basically doesn't care about Forge and does it's own thing. It's black-magic voodoo personified.
-
You probably won't be interacting with ModelRenderers directly as writing it from scratch is a tedious effort. I would suggest using one of the available tools out there to make your entity model in (e.g. Blockbench, Tabula, etc.)
-
Apologies, for some reason I remembered your class extending AnimalEntity. I'll address the issues now: 1. The RenderingRegistry should be called in FMLClientSetupEvent. It is running on the client only after all since the dedicated server has no concept of rendering. 2. At some point, you might want to look into lambdas. (not an issue, just me being picky) 3. TestVehicle#getAddEntityPacket should return NetworkHooks#getEntitySpawningPacket. (this is most likely the root of your cause since vanilla entities have their ids hardcoded in the packet check so your entity gets spawned only on the server)
-
You still didn't provide a debug.log, but since you don't know how to add attributes, I'm going to assume you didn't. Create an event handler on the mod bus for EntityAttributeCreationEvent. Pass in your entity type and the associated attribute map. You can look at GlobalEntityTypeAttributes for an example on how to create the attribute map. Most likely you'll chain off of some existing entity.
-
The error is probably your entity doesn't have any attributes. But you need to provide the full debug.log if we're going to diagnose an issue as there is no error context. Other questions/issues: Why are you overriding methods you're not using or calling? This makes no sense. What is getType? You have the mod event bus within the constructor, pass that around. This and the pop does nothing. You're not doing any logic that requires these. This is not how you should attach a renderer, use RenderingRegistry#registerEntityRenderer or something similar. Make this constant, don't keep reconstructing the object.
-
Using Blender Model for custom minecart [1.16.5]
ChampionAsh5357 replied to Yurim64's topic in Modder Support
Then if you don't expect any animation, you can just use the model loader system. Supply it in some location and create a json model with the loader forge:obj, then you would specify the model location and material. You can look at the omnibus for an example. Next, you'll want to go into the ModelRegistryEvent and call ModelLoader#addSpecialModel. You can then just render the baked model at a specific location similar to how BlockModelRenderer or ItemRenderer does it, adjust it for places such as needing a double for the location or just use the MatrixStack to offset the value. If you want animation, then you are using the wrong export type. You'll probably need to make the model loader for that on your own. -
Using Blender Model for custom minecart [1.16.5]
ChampionAsh5357 replied to Yurim64's topic in Modder Support
What format is the model in? -
ArmorMaterial equivalent for tools? 1.16.5
ChampionAsh5357 replied to awesomedude3595's topic in Modder Support
IItemTier is the name of the interface. -
[1.16.5] Entity has no attributes
ChampionAsh5357 replied to ISenseHostility's topic in Modder Support
Well, first the event handler is not attached to the mod event bus so EntityTesting#setup is never called. Second, entity attributes are now registered via EntityAttributeCreationEvent. That event is still called on the mod event bus. -
How to make a custom texture for wearing armor
ChampionAsh5357 replied to awesomedude3595's topic in Modder Support
1.16.5 uses mojmap mappings and as such the method names are different compared to mcp when this tutorial was written. You will need to use either the forge bot on discord or linkie to find the translations. Eventually, I'll get around to updating this as there are a few better things to do in the current code like instead of sticking it in an interface to use DistExecutor and call somewhere else. You should specify the modid in the string name; otherwise, this will conflict with other mods adding silver armor. Never use OnlyIn. It is for forge internal use only. -
TileEntityType.Builder.create is not defined
ChampionAsh5357 replied to eggpasta's topic in Modder Support
Still is the correct function, just a difference in the mappings used for the method names. 'create' is the mcp name while iirc 'of' is the mojmap name (which is the one you are using most likely). -
It's probably called something else in mojmap compared to the mcp name provided. A quick search using the forge bot lands us with World#getEntities.
-
How to override the loot tables of the other mods?
ChampionAsh5357 replied to TYPyz's topic in Modder Support
This does not need a mod. You would just need to replace the loot table with your own by simply providing the file in the same location as the one you are replacing, but in your own datapack. You would also need to make sure that the global loot modifiers do not have an effect by checking those in the mods to make sure they don't do anything you don't want to the particular block. -
Issue with mirroring block (1.16.4)
ChampionAsh5357 replied to Babelincoln1809's topic in Modder Support
There is no such thing as a mirrored voxel shape. The #mirror and #rotate methods within Block are specifically for handling BlockState rotations within nbt structures, nothing more. If you want the VoxelShape to be rotated, you would need to construct the rotation yourself and apply it when necessary. It's always good to precompute all possible rotations and access them via a bit mask. -
That is a warning and not an error. Currently ForgeGradle 4 does not support Gradle 7, only the latest of 6.x.
-
There is no multipart library for 1.16 unfortunately. Best you could do would probably be to have the campfire as a block with some property that determines whether the kettle is on it or not. The kettle could then be an item or a block if you want to place it separately. You would then probably use some right click action to separate the blocks and attach them together. Note that this would still be just a BlockState.
-
[1.16.5]How could i create a tileentity for my custom furnace?
ChampionAsh5357 replied to zKryle's topic in Modder Support
What do you have so far? Explaining a majority of these systems might take a while, so it's better to have some starting point. -
What are you attempting to do?
-
You would need to provide the TER for this.
-
Access Transform all methods of class
ChampionAsh5357 replied to DasBabyPixel's topic in Modder Support
The correct answer is don't and spend the time to properly utilize methods in the system. If you need to call a private or protected method outside of its context, you're most likely doing something wrong.