2
0
Fork 0

cabbage and onion crop textures dont register, planting an onion or cabbage causes crash

frozen
KeyLime17 2 years ago
parent ba15d0fc49
commit cdf25f6be8

@ -117,6 +117,8 @@ public class CinderLoE {
public static Block goldChain;
public static Block ironChain;
public static Block bronzeChain;
public static Block plaster;
public static Block voidblock;
//Food Crop blocks
public static Block onionCrop;
@ -376,11 +378,11 @@ public class CinderLoE {
reedBale = (new ReedBale());
GameRegistry.registerBlock(reedBale, "reedBale");
// Runed Dwarven Brick
// Unique
dwarvenBrickRuned = (new RunedDwarvenBrick());
GameRegistry.registerBlock(dwarvenBrickRuned, "dwarvenBrickRuned");
// Fish Barrel
// Barrel
fishBarrel = (new FishBarrel());
GameRegistry.registerBlock(fishBarrel, "fishbarrel");
@ -394,15 +396,19 @@ public class CinderLoE {
bronzeChain = (new bronzeChain());
GameRegistry.registerBlock(bronzeChain, "bronzeChain");
// Mist Block
// Staff
mistBlock = (new MistBlock());
GameRegistry.registerBlock(mistBlock, "mist");
voidblock = (new voidblock());
GameRegistry.registerBlock(voidblock, "voidblock");
// Drystones
// Building Blocks
cutDrystone = (new cutDrystone());
GameRegistry.registerBlock(cutDrystone, "cutDrystone");
cobbleDrystone = (new cobbleDrystone());
GameRegistry.registerBlock(cobbleDrystone, "cobbleDrystone");
plaster = (new plaster());
GameRegistry.registerBlock(plaster, "plaster");
//Food Crops
onionCrop = new onionCrop().setBlockName("onion");
@ -428,9 +434,9 @@ public class CinderLoE {
spice = new CinderItemFood(1, 0.0f, false).setdamageAmount(2).setPotionEffect(Potion.moveSpeed.id, 10,0,100).setUnlocalizedName("lotr:spice").setTextureName("lotr:spice");
spicedHam = new CinderItemFood(9, 0.6f, true).setdamageAmount(2).setPotionEffect(Potion.moveSpeed.id, 60, 0, 100).setUnlocalizedName("lotr:spicedHam").setTextureName("lotr:spicedHam");
// spice = new LOTRItemFood(1, 0.0f, false).setPotionEffect(Potion.moveSpeed.id, 10,0,100).setUnlocalizedName("lotr:spice");
pelmen = new LOTRItemFood(6, 1.0f, true).setUnlocalizedName("lotr:pelmen").setTextureName("lotr:pelmen");
onion = new LOTRItemFood(6, 1.0f, false).setUnlocalizedName("lotr:onion").setTextureName("lotr:onion");
cabbage = new LOTRItemFood(6, 1.0f, false).setUnlocalizedName("lotr:cabbage").setTextureName("lotr:cabbage");
pelmen = new LOTRItemFood(4, 3.0f, true).setUnlocalizedName("lotr:pelmen").setTextureName("lotr:pelmen");
onion = new LOTRItemFood(3, 0.3f, false).setUnlocalizedName("lotr:onion").setTextureName("lotr:onion");
cabbage = new LOTRItemFood(4, 0.5f, false).setUnlocalizedName("lotr:cabbage").setTextureName("lotr:cabbage");
lightStew = new LOTRItemStew(6, 0.7f, false).setPotionEffect(Potion.damageBoost.id, 60, 0, 100).setUnlocalizedName("lotr:lightStew").setTextureName("lotr:lightStew");
// Red Dwarf Spawns
redDwarfWarriorSpawnEgg = new CinderLoESpawnEgg(RedDwarfWarrior.class).setTextureName("lotr:spawn_egg");
@ -931,6 +937,8 @@ public class CinderLoE {
CinderCore.registerItemFallback(Block.getIdFromBlock(cutDrystone), Block.getIdFromBlock(LOTRMod.cobblebrick), "cinder_loe", "1.2");
CinderCore.registerItemFallback(Block.getIdFromBlock(cobbleDrystone), Block.getIdFromBlock(LOTRMod.cobblebrick), "cinder_loe", "1.2");
CinderCore.registerItemFallback(Block.getIdFromBlock(reeflessCoral), Block.getIdFromBlock(LOTRMod.coralReef), "cinder_loe", "1.2");
CinderCore.registerItemFallback(Block.getIdFromBlock(plaster), Block.getIdFromBlock(Blocks.brick_block), "cinder_loe", "1.2.1");
CinderCore.registerItemFallback(Block.getIdFromBlock(voidblock), Block.getIdFromBlock(Blocks.coal_block), "cinder_loe", "1.2.1");
// == Red Dwarf Items==
CinderCore.registerItemFallback(Item.getIdFromItem(redDwarfSteel), Item.getIdFromItem(LOTRMod.dwarfSteel), "cinder_loe", "1.0");
CinderCore.registerItemFallback(Item.getIdFromItem(spearRedDwarf), Item.getIdFromItem(LOTRMod.spearDwarven), "cinder_loe", "1.0");

@ -0,0 +1,28 @@
package com.zivilon.cinder_loe.blocks;
import com.zivilon.cinder_loe.util.Utilities;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class plaster extends Block {
public plaster() {
super(Material.rock); // Choose the appropriate material
// Set other properties like hardness, resistance, name, etc.
setHardness(2.0F);
setResistance(5.0F);
setBlockTextureName(Utilities.toSnakeCase("lotr:plaster"));
setBlockName("lotr:plaster");
setCreativeTab((CreativeTabs)Utilities.reflected_tab_block);
}
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
this.blockIcon = iconRegister.registerIcon("lotr:plaster");
}
}

@ -0,0 +1,27 @@
package com.zivilon.cinder_loe.blocks;
import com.zivilon.cinder_loe.util.Utilities;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.block.Block;
import net.minecraft.block.material.Material;
import net.minecraft.client.renderer.texture.IIconRegister;
import net.minecraft.creativetab.CreativeTabs;
public class voidblock extends Block {
public voidblock() {
super(Material.rock); // Choose the appropriate material
// Set other properties like hardness, resistance, name, etc.
setHardness(100.0F);
setResistance(100.0F);
setBlockTextureName(Utilities.toSnakeCase("lotr:voidblock"));
setBlockName("lotr:voidblock");
}
@SideOnly(Side.CLIENT)
public void registerBlockIcons(IIconRegister iconRegister) {
this.blockIcon = iconRegister.registerIcon("lotr:voidblock");
}
}

@ -16,6 +16,8 @@ tile.lotr:fishbarrel.name=Barrel of Fish
tile.lotr:reeflessCoral.name=Cut Coral
tile.lotr:cutDrystone.name=Cut Drystone
tile.lotr:cobbleDrystone.name=Cobbled Drystone
tile.lotr:plaster.name=Plaster
tile.lotr:voidblock.name=Void
item.lotr:frostblade.name=Frostblade
item.lotr:whip.name=Whip
@ -42,6 +44,13 @@ item.lotr:sarumanStaff.name=Staff of Saruman of Many Colors
item.lotr:welfRelic.name=Horn of the Greenwood Stag
item.lotr:onion.name=Onion
item.lotr:cabbage.name=Cabbage
item.lotr:pelmen.name=pelmeni
item.lotr:lightStew.name=Light Stew
item.lotr:spice.name=Spices
item.lotr:spicedHam.name=Spiced Ham
item.lotr:bonemold.name=Bonemold
item.lotr:helmetLimwaith.name=Limwaith Helmet
item.lotr:bodyLimwaith.name=Limwaith Chestplate
@ -58,6 +67,8 @@ item.lotr:truncheonLimwaith.name=Limwaith Truncheon
item.lotr:daggerLimwaith.name=Limwaith Dagger
item.lotr:daggerLimwaithPoisoned.name=Poisoned Limwaith Dagger
item.lotr:blowgunLimwaith.name=Limwaith Blowgun
item.lotr:helmetBreeKettle.name=Bree-land Kettle Helmet
item.lotr:helmetBree.name=Bree-land Helmet
item.lotr:bodyBree.name=Bree-land Chestplate
item.lotr:legsBree.name=Bree-land Leggings

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Loading…
Cancel
Save