
jamesc554544
Members-
Posts
35 -
Joined
-
Last visited
Converted
-
Gender
Undisclosed
-
Personal Text
I am new!
jamesc554544's Achievements

Tree Puncher (2/8)
1
Reputation
-
I am thinking about making a mod that goes into really complex methods of blacksmithing; where you could create your own metals. I am wondering if it is possible to have the colour, properties, name and NBT data changed to create a new liquid in game. I have probably not explained myself very well, but i hope you get the gist. THANKS!
-
I am wondering how I would go about making a Block with a Tileentity that would store and have the ability to use a fluid. I already know how to make Tileentities and blocks, it is just the FluidAPI which I lake knowledge on and I have been trying to research it but I am coming up short. Any help is greatly appreciated. To helping me understand how the API works, I have great thanks!
-
Hey guys, i am having a little trouble making my block orientation based off which face i place the block on. I am using BlockLog as a base for it and it changes and works fin for my pillars, but i want pillar caps; and i need the top texture and the side texture to also change so that the cap is always in the right place, any ideas?
-
I want to be able to make the player move faster depending on if they are wearing the boots from my armor set with the correct NBTTags here is my code so far This is in onArmorTick if (itemStack.getItem() == MagicasItems.ironInfusedLeggings) { if (itemStack.stackTagCompound != null) { NBTTagCompound nbtTag = itemStack.stackTagCompound; if (nbtTag.hasKey("AirInfused") && nbtTag.getBoolean("AirInfused")) { player.setAIMoveSpeed(1F); } } }
-
[1.7.10] Detect When A Play Is Sneaking And Wearing Armor
jamesc554544 replied to jamesc554544's topic in Modder Support
Okay Thanks! -
[1.7.10] Detect When A Play Is Sneaking And Wearing Armor
jamesc554544 replied to jamesc554544's topic in Modder Support
Where is onArmorTick?, i cannot find it in the ItemArmor or ISpecialArmor Classes. so i do not know what the method needs to look like and how to override it... -
I have a custom block with a gui, container, tile entity and so on, and i wanted to know how i can limit which items can go in a slot as i want glass bottles to go in slot 1 and only glass bottles?
-
Having a crash when loading a would with the block in... Sorry about it not being in the code thingy, it would not let me use it or the spoilers or anything package net.gammas.magicas.models; import net.gammas.magicas.tileentites.TileEntityEssenceExtractor; import net.minecraft.block.Block; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.OpenGlHelper; import net.minecraft.client.renderer.Tessellator; import net.minecraft.client.renderer.entity.RenderItem; import net.minecraft.client.renderer.entity.RenderManager; import net.minecraft.client.renderer.tileentity.TileEntitySpecialRenderer; import net.minecraft.entity.Entity; import net.minecraft.entity.item.EntityItem; import net.minecraft.tileentity.TileEntity; import net.minecraft.util.ResourceLocation; import net.minecraft.world.World; import org.lwjgl.opengl.GL11; public class TileEntityEssenceExtractorRenderer extends TileEntitySpecialRenderer { // The model of your block private final ModelEssenceExtractor model; private EntityItem entItem = null; public TileEntityEssenceExtractorRenderer() { this.model = new ModelEssenceExtractor(); } private void adjustRotatePivotViaMeta(World world, int x, int y, int z) { int meta = world.getBlockMetadata(x, y, z); GL11.glPushMatrix(); GL11.glRotatef(meta * (-90), 0.0F, 0.0F, 1.0F); GL11.glPopMatrix(); } @Override public void renderTileEntityAt(TileEntity te, double x, double y, double z, float scale) { GL11.glPushMatrix(); GL11.glTranslatef((float) x + 0.5F, (float) y + 1.5F, (float) z + 0.5F); ResourceLocation texture = new ResourceLocation("magicasmod" + ":" + "textures/blocks/EssenceExtractor.png"); Minecraft.getMinecraft().renderEngine.bindTexture(texture); GL11.glPushMatrix(); GL11.glRotatef(180F, 0.0F, 0.0F, 1.0F); this.model.render((Entity) null, 0.0F, 0.0F, -0.1F, 0.0F, 0.0F, 0.0625F); GL11.glPopMatrix(); GL11.glPopMatrix(); int slot = 0; TileEntityEssenceExtractor tileEntity = (TileEntityEssenceExtractor) te; if ((entItem == null) || entItem.getEntityItem().getItem() != tileEntity.getStackInSlot(slot).getItem()) entItem = new EntityItem(tileEntity.getWorldObj(), x, y, z, tileEntity.getStackInSlot(slot)); GL11.glPushMatrix(); this.entItem.hoverStart = 0.0F; RenderItem.renderInFrame = true; GL11.glTranslatef((float) x + 0.5F, (float) y + 1.02F, (float) z + 0.3F); GL11.glRotatef(180, 0, 1, 1); RenderManager.instance.renderEntityWithPosYaw(entItem, x + 0.5, y + 1, z + 0.5, 0, 0); RenderItem.renderInFrame = false; GL11.glPopMatrix(); } private void adjustLightFixture(World world, int i, int j, int k, Block block) { Tessellator tess = Tessellator.instance; float brightness = block.getLightValue(world, i, j, k); int skyLight = world.getLightBrightnessForSkyBlocks(i, j, k, 0); int modulousModifier = skyLight % 65536; int divModifier = skyLight / 65536; tess.setColorOpaque_F(brightness, brightness, brightness); OpenGlHelper.setLightmapTextureCoords(OpenGlHelper.lightmapTexUnit, (float) modulousModifier, divModifier); } } -- Head -- Stacktrace: at net.minecraft.entity.item.EntityItem.<init>(EntityItem.java:62) at net.gammas.magicas.models.TileEntityEssenceExtractorRenderer.renderTileEntityAt(TileEntityEssenceExtractorRenderer.java:55)
-
I am trying to make it so my sword places redstone, and damages the sword on use. Code:
-
Client Wont Start When I Add Crafting Recipes
jamesc554544 replied to jamesc554544's topic in Modder Support
Ok, thanks i forgot i was making the sticks and redstone into ItemStacks insted of Items, it fixed it -
public static void InitRecipes(){ ItemStack itemRedstonePickaxe; ItemStack itemRedstoneAxe; ItemStack itemRedstoneShovel; ItemStack itemRedstoneSword; ItemStack itemRedstoneHoe; itemRedstonePickaxe = new ItemStack(redstonePickaxe); itemRedstonePickaxe.addEnchantment(Enchantment.efficiency, 3); itemRedstoneAxe = new ItemStack(redstoneAxe); itemRedstoneAxe.addEnchantment(Enchantment.efficiency, 3); itemRedstoneShovel = new ItemStack(redstoneShovel); itemRedstoneShovel.addEnchantment(Enchantment.efficiency, 3); itemRedstoneSword = new ItemStack(redstoneSword); itemRedstoneSword.addEnchantment(Enchantment.sharpness, 3); itemRedstoneHoe = new ItemStack(redstoneHoe); itemRedstoneHoe.addEnchantment(Enchantment.unbreaking, 3); ItemStack sticks = new ItemStack(net.minecraft.init.Items.stick); ItemStack redstone = new ItemStack(net.minecraft.init.Items.redstone); GameRegistry.addRecipe(itemRedstonePickaxe, new Object[]{"xxx", " y ", " y ", 'x', redstone, 'y', sticks}); GameRegistry.addRecipe(itemRedstoneAxe, new Object[]{" xx", " yx", " y ", 'x', redstone, 'y', sticks}); GameRegistry.addRecipe(itemRedstoneAxe, new Object[]{"xx ", "xy", " y ", 'x', redstone, 'y', sticks}); GameRegistry.addRecipe(itemRedstoneShovel, new Object[]{" x ", " y ", " y ", 'x', redstone, 'y', sticks}); GameRegistry.addRecipe(itemRedstoneSword, new Object[]{" x ", " x ", " y ", 'x', redstone, 'y', sticks}); GameRegistry.addRecipe(itemRedstoneHoe, new Object[]{" xx", " y ", " y ", 'x', redstone, 'y', sticks}); GameRegistry.addRecipe(itemRedstoneHoe, new Object[]{"xx ", " y ", " y ", 'x', redstone, 'y', sticks}); }
-
My Client Wont Start.... [21:51:14] [main/INFO]: No arguments specified, assuming client. [21:51:14] [main/INFO]: Extra: [] Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: C:\Users\James\.gradle\caches\minecraft\assets\indexes\{ASSET_INDEX}.json (The system cannot find the file specified) at com.google.common.base.Throwables.propagate(Throwables.java:160) at GradleStart.setupAssets(GradleStart.java:274) at GradleStart.startClient(GradleStart.java:82) at GradleStart.main(GradleStart.java:56) Caused by: java.io.FileNotFoundException: C:\Users\James\.gradle\caches\minecraft\assets\indexes\{ASSET_INDEX}.json (The system cannot find the file specified) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileReader.<init>(Unknown Source) at GradleStart.loadAssetsIndex(GradleStart.java:280) at GradleStart.setupAssets(GradleStart.java:218) ... 2 more
-
HELP Rendering Wire Like BC And IC2 And Mekanism Cables.
jamesc554544 replied to jamesc554544's topic in Modder Support
You are amazing!