CoderAtParadise
Forge Modder-
Posts
107 -
Joined
-
Last visited
Everything posted by CoderAtParadise
-
[1.8] [Unsolved] Tutorial Ore Generation
CoderAtParadise replied to UnknownAssassin's topic in Modder Support
and there's your problem -
[1.8] [Unsolved] Tutorial Ore Generation
CoderAtParadise replied to UnknownAssassin's topic in Modder Support
Can you post the code for the block and the ModBlocks class cause i have it working -
[1.8] [Unsolved] Tutorial Ore Generation
CoderAtParadise replied to UnknownAssassin's topic in Modder Support
Didn't read the code properly import it -
[1.8] [Unsolved] Tutorial Ore Generation
CoderAtParadise replied to UnknownAssassin's topic in Modder Support
I have a block helper for mine so where Blocks.stone is I have BlockHelper.forBlock(Blocks.stone) as it is a predicate that it is looking for in the last argument as for using your own block the getDefaultState fixes that -
[1.8] [Unsolved] Tutorial Ore Generation
CoderAtParadise replied to UnknownAssassin's topic in Modder Support
In WorldGenMinable you need to change block in as it now only accepts an IBlockState and that should fix up everything. Hopefully -
[1.8] [Unsolved] Tutorial Ore Generation
CoderAtParadise replied to UnknownAssassin's topic in Modder Support
should be minable.generate(world,random, new BlockPos(posX,posY,posZ)); as you need to wrap the coordinates in the new BlockPos as that function only accepts a BlockPos. -
[solved][1.8] BlockContainer not rendering
CoderAtParadise replied to Failender's topic in Modder Support
Block container default render type is -1 while block is 3 so if you want to render it you need to override get render type and set it to 3 -
[1.7.10] Block with glowing parts in the darkness
CoderAtParadise replied to SantacreeperLP's topic in Modder Support
GLStateManager is just Minecraft's fancy way of saying GL11 for Minecraft 1.8 and if you look at the source code for GLStateManager it is GL11 so just replace all the GLStateManager functions with the GL11 ones -
Yes you can, have a look at ironchests as it has updated to 1.8 and has its chests are rendering in the inventory
-
[1.8] Custom world-Generator does not work
CoderAtParadise replied to MikaXD's topic in Modder Support
Can't do anything without code -
Yes but itemstack looks for an item therefore you need to use Item.getItemFromBlock(yourBlock)
-
[1.8] I can't create a new CreativeTab
CoderAtParadise replied to alexdr5398's topic in Modder Support
that is weird, try reinstalling forge -
[1.8] I can't create a new CreativeTab
CoderAtParadise replied to alexdr5398's topic in Modder Support
It's the one above that it should have this(getNextID(), label)l in it -
[1.8] I can't create a new CreativeTab
CoderAtParadise replied to alexdr5398's topic in Modder Support
It's still there -
Is diamond rail a block or an item item
-
[1.8][SOLVED]Problems with blockstates and Property
CoderAtParadise replied to Jacky2611's topic in Modder Support
-
[1.8][SOLVED]Problems with blockstates and Property
CoderAtParadise replied to Jacky2611's topic in Modder Support
To your block class you need to add protected BlockState createBlockState() { return new BlockState(this, new IProperty[]{FACING}); } as you haven't told Minecraft that there actually is a blockstate for the block but you are using it anyway. -
First: For rendering you need to have a json would recommend looking in the vanilla assets for wheat as that has what you need for blockstates and models and such. Just follow that layout and you should get rendering working. Second: If your seeds are extending ItemSeeds your need to change what they can plant on as it has a property in onItemUse called canSustainPlant and crops default to farmland so hence your problem being unable to plant on grass to fix that you need to override onItemUse and change canSustainPlant to ==Blocks.grass or something like that Edit:Would also recommend a better naming sceme such as for CropsClass renaming it to BlockCropsBase And items beginning with Item so that it is easy for other modders looking at your code to understand, so basically just follow how Minecraft does it and other modders do it with how they name things
-
Minecraft has in the EntityPlayer class methods for adding experience to player so all you would need to do is add player.addExperience where player is an instance of EntityPlayer. Or for levels it's player.addExperienceLevel A lot less complicated than spawning in entities
-
The Vanilla Spawner in the code is called BlockMobSpawner for the block and TileEntityMobSpawner for the tile entity
-
[1.8][Solved] Block Texture/Render Bug
CoderAtParadise replied to Powerman913717's topic in Modder Support
To fix the x-raying you need to add to your block class public boolean isFullCube() { return false; } public boolean isOpaqueCube() { return false; } don't remember which one does it but one of them does and it removes the x-ray of the block -
[1.8][Solved] Creative tab items do not show up in custom tab
CoderAtParadise replied to wjg999's topic in Modder Support
Thanks for the heads up about the 1.8 syntax had not known about that but it is best to have Minecraft automatically assign tab index so that it doesn't clash with other mods -
[1.8][Solved] Creative tab items do not show up in custom tab
CoderAtParadise replied to wjg999's topic in Modder Support
You don't need to have the creative tabs in the main mod file it's just that all you need to get a creative tab is public static final CreativeTabs TEST_TAB = new CreativeTabs(MOD_ID+"test") {//best to have mod id in name so that it is YOUR tab public Item getTabIconItem() { return item //returns item or block you want as the icon though for block you need to use Item.getItemFromBlock(block) } public String getTranslatedTabLabel() { return "test tab"; //name of the tab you want to display when hovering } } and you should have a creative tab and you don't need to extend CreativeTabs -
Does anyone know how to get fluids to render?