Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Adam1223

Members
  • Joined

  • Last visited

Everything posted by Adam1223

  1. I cannot get my .getBox to work for some reason, any thoughts? public GoatEntityModel() { textureWidth = 64; textureHeight = 64; Body = new ModelRenderer(this); Body.setRotationPoint(0.0F, 24.0F, 0.0F); Torso = new ModelRenderer(this); Torso.setRotationPoint(0.0F, 0.0F, 0.0F); Body.addChild(Torso); Torso.setTextureOffset(0, 0).addBox(-4.0F, -7.0F, -4.0F, 7.0F, 4.0F, 8.0F, 0.0F, false); Head = new ModelRenderer(this); Head.setRotationPoint(0.0F, 0.0F, 0.0F); Body.addChild(Head); Head.setTextureOffset(0, 0).addBox(-2.0F, -8.0F, -7.0F, 3.0F, 3.0F, 3.0F, 0.0F, false); Legs = new ModelRenderer(this); Legs.setRotationPoint(0.0F, 0.0F, 0.0F); Body.addChild(Legs); Front = new ModelRenderer(this); Front.setRotationPoint(0.0F, 0.0F, 0.0F); Legs.addChild(Front); FrontRight = new ModelRenderer(this); FrontRight.setRotationPoint(0.0F, 0.0F, 0.0F); Front.addChild(FrontRight); FrontRight.setTextureOffset(0, 12).addBox(-4.0F, -3.0F, -4.0F, 1.0F, 3.0F, 1.0F, 0.0F, false); FrontLeft = new ModelRenderer(this); FrontLeft.setRotationPoint(0.0F, 0.0F, 0.0F); Front.addChild(FrontLeft); FrontLeft.setTextureOffset(0, 0).addBox(2.0F, -3.0F, -4.0F, 1.0F, 3.0F, 1.0F, 0.0F, false); Back = new ModelRenderer(this); Back.setRotationPoint(0.0F, 0.0F, 0.0F); Legs.addChild(Back); BackRight = new ModelRenderer(this); BackRight.setRotationPoint(0.0F, 0.0F, 0.0F); Back.addChild(BackRight); BackRight.setTextureOffset(0, 0).addBox(-4.0F, -3.0F, 3.0F, 1.0F, 3.0F, 1.0F, 0.0F, false); BackLeft = new ModelRenderer(this); BackLeft.setRotationPoint(0.0F, 0.0F, 0.0F); Back.addChild(BackLeft); BackLeft.setTextureOffset(0, 0).addBox(2.0F, -3.0F, 3.0F, 1.0F, 3.0F, 1.0F, 0.0F, false); }
  2. i named it that myself when i made it, should i rename it to something else? i fixed it, thanks for the help!!!
  3. Recently i decided to make some armor and after a long time i finally got it in the game but the model is not loading... can anybody help? Here is my code for making the ruby armor material, i believe at the top where it says ":ruby" is telling minecraft where to pull the model from, not sure tho. public enum ModArmorMaterial implements IArmorMaterial { rubyMaterial(Zenox.Mod_ID + ":ruby", 5, new int[] { 7, 9, 11, 7 }, 420, SoundEvents.field_226124_Y_, 6.9F, () -> { return Ingredient.fromItems(RegistryHandler.testitem); }); private static final int[] MAX_DAMAGE_ARRAY = new int[] { 16, 16, 16, 16 }; String name; int maxDamageFactor; int[] damageReductionAmountArray; int enchantability; SoundEvent soundEvent; float toughness; LazyValue<Ingredient> repairMaterial; private ModArmorMaterial(String nameIn, int maxDamageFactorIn, int[] damageReductionAmountIn, int enchantabilityIn, SoundEvent soundEventIn, float toughnessIn, Supplier<Ingredient> repairMaterialIn) { this.name = nameIn; this.maxDamageFactor = maxDamageFactorIn; this.damageReductionAmountArray = damageReductionAmountIn; this.enchantability = enchantabilityIn; this.soundEvent = soundEventIn; this.toughness = toughnessIn; this.repairMaterial = new LazyValue<>(repairMaterialIn); } @Override public int getDurability(EquipmentSlotType slotIn) { return MAX_DAMAGE_ARRAY[slotIn.getIndex()] * this.maxDamageFactor; } @Override public int getDamageReductionAmount(EquipmentSlotType slotIn) { return this.damageReductionAmountArray[slotIn.getIndex()]; } @Override public int getEnchantability() { return this.enchantability; } @Override public SoundEvent getSoundEvent() { return this.soundEvent; } @Override public Ingredient getRepairMaterial() { return this.repairMaterial.getValue(); } @Override public String getName() { return this.name; } @Override public float getToughness() { return this.toughness; } } And here is me making all the specific armor pieces (not sure if its needed but might as well add it. event.getRegistry().register(new ArmorItem(ModArmorMaterial.rubyMaterial, EquipmentSlotType.HEAD, new Item.Properties().group(ItemGroup.COMBAT)).setRegistryName("ruby_helmet")); event.getRegistry().register(new ArmorItem(ModArmorMaterial.rubyMaterial, EquipmentSlotType.CHEST, new Item.Properties().group(ItemGroup.COMBAT)).setRegistryName("ruby_chest_plate")); event.getRegistry().register(new ArmorItem(ModArmorMaterial.rubyMaterial, EquipmentSlotType.LEGS, new Item.Properties().group(ItemGroup.COMBAT)).setRegistryName("ruby_leggings")); event.getRegistry().register(new ArmorItem(ModArmorMaterial.rubyMaterial, EquipmentSlotType.FEET, new Item.Properties().group(ItemGroup.COMBAT)).setRegistryName("ruby_boots")); and finally as you can see the files are tehre...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.