mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-17 02:55:17 +00:00
Fix bucket replacement not loading the bucket model by itself if replacing buckets.
This happens when no other mod that uses the bucket model is present. Also added a simple method for registering the bucket model, should give modders an idea on how to use the general model.
This commit is contained in:
1 parent
7f52bc6547
commit
509cc79112
2 files changed
+25
-10
No files matched your search
@@ -47,15 +47,7 @@ public class DynBucketTest
|
||||
@Override
|
||||
void setupModels()
|
||||
{
|
||||
ModelLoader.setCustomMeshDefinition(dynBucket, new ItemMeshDefinition()
|
||||
{
|
||||
@Override
|
||||
public ModelResourceLocation getModelLocation(ItemStack stack)
|
||||
{
|
||||
return ModelDynBucket.LOCATION;
|
||||
}
|
||||
});
|
||||
ModelBakery.registerItemVariants(dynBucket, new ResourceLocation("forge", "dynbucket"));
|
||||
ModelLoader.setBucketModelDefinition(dynBucket);
|
||||
|
||||
final ModelResourceLocation bottle = new ModelResourceLocation(new ResourceLocation("forge", "dynbottle"), "inventory");
|
||||
ModelLoader.setCustomMeshDefinition(dynBottle, new ItemMeshDefinition()
|
||||
|
||||
Reference in new issue
Block a user