FireIsH0t
Members-
Posts
57 -
Joined
-
Last visited
Everything posted by FireIsH0t
-
WC Tech & Magic is a tech/magic themed pack which is aimed for the players to use spells and tech to have an enjoyable time on this pack. Its mostly based on survival and adventure but you are the one to chose on what you will do. Official server online!This Pack Includes:An official server. Great friendly staff & community. Good and not much mods on the pack. Many players playing all over the world. Custom terrain on the server. Tech and magic mods. Much much more! Official server IP is included in the pack when you install it!Tutorial on installing this modpack: youtu.be/BV3IjftMOj4Modpack Link: https://www.technicpack.net/modpack/wizardz-conquest-tech-magic.1531853Mod list: https://www.technicpack.net/modpack/wizardz-conquest-tech-magic.1531853/modsTechnic Launcher Download: https://www.technicpack.net/downloadJava 8 Download: https://www.java.com/en/download/ or https://www.oracle.com/technetwork/java/javase/downloads/jdk8-downloads-2133151.htmlOfficial Discord: https://discord.gg/8vF9PYMWebsite: https://arsenalnetwork.net/Store: https://store.arsenalnetwork.net/Forums: https://forums.respawngroup.net/
-
Crashing when trying to use mod on an actual forge server.
FireIsH0t replied to FireIsH0t's topic in Modder Support
I am the author -
Nvm I think I figured it out
-
I am trying to do rendering on a json model
-
Hello! I am trying to do rendering on a json model but I did everything that I am suppose to do like register registerNormalItemModel(event, ModItems.M1911); ModItems.M1911.setTileEntityItemStackRenderer(RenderM1911.instance); But when I use the item on my hand it just shows nothing unlike the other rendering I have done BUT for java models. Here is just some of my json model (Cause its way to big): { "credit": "Made by MaxIsH0t", "parent": "builtin/entity", "textures": { "texture": "arsenalmod:items/darkgrey" }, "elements": [ Rendering Class: package net.arsenalnetwork.arsenalmod.client.render.items.guns; import net.arsenalnetwork.arsenalmod.utilities.ModReference; import net.minecraft.client.Minecraft; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.tileentity.TileEntityItemStackRenderer; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraft.util.ResourceLocation; public class RenderM1911 extends TileEntityItemStackRenderer { private static final ResourceLocation MODEL = new ResourceLocation(ModReference.MOD_ID, "models/item/m1911.json"); public static final ResourceLocation TEXTURE = new ResourceLocation(ModReference.MOD_ID, "textures/items/darkgrey.png"); Minecraft mc; public static ResourceLocation getMODEL() { return MODEL; } public RenderM1911() { mc = Minecraft.getMinecraft(); } @Override public void renderByItem(ItemStack itemStackIn) { EntityPlayer player = Minecraft.getMinecraft().player; GlStateManager.pushMatrix(); mc.getTextureManager().bindTexture(TEXTURE); GlStateManager.rotate(130, 0, 1, 0); GlStateManager.rotate(0, 0, 0, 1); GlStateManager.rotate(0, 1, 0, 0); GlStateManager.translate(-0.2f, 1.2f, 0.1f); final double scale2 = 0.4; GlStateManager.scale(scale2, scale2, scale2); MODEL.getResourceDomain(); GlStateManager.popMatrix(); } }
-
bump
-
/** * returns the action that specifies what animation to play when the items is being used */ @Override public EnumAction getItemUseAction(final ItemStack stack) { return EnumAction.BOW; } /** * Called when the equipped item is right clicked. */ @Override public ActionResult<ItemStack> onItemRightClick(final World worldIn, final EntityPlayer playerIn, final EnumHand handIn) { final ItemStack itemstack = playerIn.getHeldItem(handIn); final boolean flag = !this.findAmmo(playerIn).isEmpty(); if (!playerIn.capabilities.isCreativeMode && !flag) { return flag ? new ActionResult<>(EnumActionResult.PASS, itemstack) : new ActionResult<>(EnumActionResult.FAIL, itemstack); } else { playerIn.setActiveHand(handIn); return new ActionResult<>(EnumActionResult.SUCCESS, itemstack); } } Alright so I got this in my ItemGun class. When I aim it shows just like a bow: http://prntscr.com/lytsr5 anyway to possible like use glstatemanager and rotate/translate it?
-
Could you explain keybinds?
-
When I click "g" on my keyboard it doesn't open my gui which is what I want. GuiCosmetics class: public class GuiCosmetics extends GuiScreen { // Images private final ResourceLocation BACKGROUND = new ResourceLocation(ModReference.MOD_ID,"textures/gui/cosmetics/bg.png"); @Override public void initGui() { super.initGui(); } @Override protected void actionPerformed(GuiButton button) throws IOException { super.actionPerformed(button); } @Override public void updateScreen() { super.updateScreen(); } @Override public void drawScreen(int mouseX, int mouseY, float partialTicks) { super.drawScreen(mouseX, mouseY, partialTicks); // Draw Background this.drawBackground(); } @Override public void handleKeyboardInput() throws IOException { super.handleKeyboardInput(); } private void drawBackground() { ArsenalUtils.drawBackground(0, 0, BACKGROUND, this.width, this.height); } } ClientEventSubsriber Class: @SubscribeEvent public void onKeyInput(InputEvent.KeyInputEvent event) { if (!FMLClientHandler.instance().isGUIOpen(GuiCosmetics.class)) { int key = Keyboard.getEventKey(); boolean isDown = Keyboard.getEventKeyState(); AbstractClientPlayer playerMP = Minecraft.getMinecraft().player; if (isDown && key == Keyboard.KEY_G) { playerMP.openGui(ArsenalMod.instance, ModReference.GUI_COSMETICS, playerMP.world, (int) playerMP.posX, (int) playerMP.posY, (int) playerMP.posZ); } } }
-
Trying to create a new item with a model java.
FireIsH0t replied to FireIsH0t's topic in Modder Support
-
Hello, I am trying to create an item with using a java class model. For some reason when I put the item in my hand it shows like this: http://prntscr.com/lsvrjf assets.arsenalmod.models.item.combat_knife.json: { "parent": "item/generated", "textures": { "layer0": "arsenalmod:items/combat_knife" } } ModelCombatKnife class: https://pastebin.com/gezpT9aa RenderCombatKnife class: https://pastebin.com/QvtPBp21 and I have this in my ClientProxy[postInit] ModItems.COMBAT_KNIFE.setTileEntityItemStackRenderer(new RenderCombatKnife());
-
Hello, I am currently trying to display fog in the world but it doesn't show up. Anyone know why? @SubscribeEvent @SideOnly(Side.CLIENT) public void onTick(final TickEvent.ClientTickEvent event) { final Minecraft mc = Minecraft.getMinecraft(); if (mc.player != null) { if (ClientEventSubscriber.fogDensity > ClientEventSubscriber.fogRequiredDensity) { ClientEventSubscriber.fogDensity -= 1.0E-4F; } else if (ClientEventSubscriber.fogDensity < ClientEventSubscriber.fogRequiredDensity) { ClientEventSubscriber.fogDensity += 4.0E-4f; } } } @SubscribeEvent @SideOnly(Side.CLIENT) public void onFog(final EntityViewRenderEvent.FogDensity event) { final Minecraft mc = Minecraft.getMinecraft(); if (mc.world.isRaining()) { ClientEventSubscriber.fogRequiredDensity = 0.1f; } else { ClientEventSubscriber.fogRequiredDensity = 0.015f; } BigDecimal bd = new BigDecimal(Float.toString(ClientEventSubscriber.fogDensity)); bd = bd.setScale(3, 4); event.setDensity(bd.floatValue()); GL11.glFogi(2917, 2048); event.setCanceled(true); }
-
Trying to draw a hand when holding an item.
FireIsH0t replied to FireIsH0t's topic in Modder Support
Alright Update: New RenderBaseBall Class: https://hastebin.com/yatirebome.java And have this in my ClientEventSubscriber: @SubscribeEvent public static void onRegisterModelsEvent(final ModelRegistryEvent event) { ModItems.BASEBALL_BAT.setTileEntityItemStackRenderer(new RenderBaseBallBat()); but the hand still doesnt render onto the baseball bat item -
Trying to draw a hand when holding an item.
FireIsH0t replied to FireIsH0t's topic in Modder Support
I am a bit confused now lol -
Trying to draw a hand when holding an item.
FireIsH0t replied to FireIsH0t's topic in Modder Support
package net.arsenalnetwork.arsenalmod.client.render.item; import net.arsenalnetwork.arsenalmod.item.tools.ItemMelee; import net.minecraft.client.Minecraft; import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.entity.RenderPlayer; import net.minecraft.client.renderer.tileentity.TileEntityItemStackRenderer; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.relauncher.SideOnly; import org.lwjgl.opengl.GL12; import javax.annotation.Nullable; public class RenderItem extends TileEntityItemStackRenderer { @Override public void renderByItem(ItemStack itemStackIn) { Minecraft mc = Minecraft.getMinecraft(); final EntityPlayer player = Minecraft.getMinecraft().player; GlStateManager.pushMatrix(); if (itemStackIn.getItem() instanceof ItemMelee) { if (!player.isSwingInProgress) { /** * For the right hand */ GlStateManager.pushMatrix(); GlStateManager.glEnableClientState(GL12.GL_RESCALE_NORMAL); mc.getTextureManager().bindTexture(((EntityPlayerSP) player).getLocationSkin()); GlStateManager.translate(1F, 1F, 0F); GlStateManager.rotate(125.0F, 0.0F, 0.0F, 1.0F); GlStateManager.rotate(180.0F, 1.0F, 0.0F, 0.0F); GlStateManager.scale(1.0F, 1.8F, 1.0F); GlStateManager.translate(0.19F, -1.14F, 0.3F); Render render = Minecraft.getMinecraft().getRenderManager().getEntityRenderObject(mc.player); mc.getRenderManager().getEntityRenderObject(mc.player); RenderPlayer renderPlayer = (RenderPlayer)render; float f11 = 1.0F; GlStateManager.scale(f11, f11, f11); renderPlayer.renderRightArm(mc.player); GlStateManager.popMatrix(); } this.renderItemThirdPerson((EntityPlayer) player, itemStackIn); GlStateManager.popMatrix(); return; } } public void renderItemThirdPerson(EntityPlayer player, ItemStack itemStack) { GlStateManager.translate(0.0F, 0.0F, -0.05F); GlStateManager.rotate(180, 1.0F, 0.0F, 0.0F); GlStateManager.rotate(-15, 0.0F, 0.0F, 1.0F); GlStateManager.rotate(78, 0.0F, 1.0F, 0.0F); GlStateManager.translate(0.0F, 0.7F, 0.25F); GlStateManager.rotate(15, 0.0F, 0.0F, 1.0F); double scale = 1.2D; GlStateManager.scale(scale, scale, scale); } @SideOnly(Side.CLIENT) @Nullable private net.minecraft.client.renderer.tileentity.TileEntityItemStackRenderer teisr; @SideOnly(Side.CLIENT) public void setTileEntityItemStackRenderer(@Nullable net.minecraft.client.renderer.tileentity.TileEntityItemStackRenderer teisr) { this.teisr = teisr; } } ok boom. -
Trying to draw a hand when holding an item.
FireIsH0t replied to FireIsH0t's topic in Modder Support
@SideOnly(Side.CLIENT) @Nullable private net.minecraft.client.renderer.tileentity.TileEntityItemStackRenderer teisr; @SideOnly(Side.CLIENT) public void setTileEntityItemStackRenderer(@Nullable net.minecraft.client.renderer.tileentity.TileEntityItemStackRenderer teisr) { this.teisr = teisr; } this right? -
Trying to draw a hand when holding an item.
FireIsH0t replied to FireIsH0t's topic in Modder Support
@Override public void renderByItem(ItemStack itemStackIn) { Minecraft mc = Minecraft.getMinecraft(); final EntityPlayer player = Minecraft.getMinecraft().player; GlStateManager.pushMatrix(); if (itemStackIn.getItem() instanceof ItemMelee) { if (!player.isSwingInProgress) { /** * For the right hand */ GlStateManager.pushMatrix(); GlStateManager.glEnableClientState(GL12.GL_RESCALE_NORMAL); mc.getTextureManager().bindTexture(((EntityPlayerSP) player).getLocationSkin()); GlStateManager.translate(1F, 1F, 0F); GlStateManager.rotate(125.0F, 0.0F, 0.0F, 1.0F); GlStateManager.rotate(180.0F, 1.0F, 0.0F, 0.0F); GlStateManager.scale(1.0F, 1.8F, 1.0F); GlStateManager.translate(0.19F, -1.14F, 0.3F); Render render = Minecraft.getMinecraft().getRenderManager().getEntityRenderObject(mc.player); mc.getRenderManager().getEntityRenderObject(mc.player); RenderPlayer renderPlayer = (RenderPlayer)render; float f11 = 1.0F; GlStateManager.scale(f11, f11, f11); renderPlayer.renderRightArm(mc.player); GlStateManager.popMatrix(); } this.renderItemThirdPerson((EntityPlayer) player, itemStackIn); GlStateManager.popMatrix(); return; } } Removed that null thing "Also show where you assign the TEISR to your item." ? -
Trying to draw a hand when holding an item.
FireIsH0t replied to FireIsH0t's topic in Modder Support
1.12.2 -
Trying to draw a hand when holding an item.
FireIsH0t replied to FireIsH0t's topic in Modder Support
So yeah if (itemStackIn.getItem() instanceof ItemMelee) trying to get all the melee items that are created and render that hand. Why doesn't it work like what am i doing wrong? -
Trying to draw a hand when holding an item.
FireIsH0t replied to FireIsH0t's topic in Modder Support
wym? -
Trying to draw a hand when holding an item.
FireIsH0t replied to FireIsH0t's topic in Modder Support
package net.arsenalnetwork.arsenalmod.client.render.item; import net.arsenalnetwork.arsenalmod.item.tools.ItemMelee; import net.minecraft.client.Minecraft; import net.minecraft.client.entity.EntityPlayerSP; import net.minecraft.client.renderer.GlStateManager; import net.minecraft.client.renderer.entity.Render; import net.minecraft.client.renderer.entity.RenderPlayer; import net.minecraft.client.renderer.tileentity.TileEntityItemStackRenderer; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.item.ItemStack; import org.lwjgl.opengl.GL12; public class RenderItem extends TileEntityItemStackRenderer { @Override public void renderByItem(ItemStack itemStackIn) { Minecraft mc = Minecraft.getMinecraft(); final EntityPlayer player = Minecraft.getMinecraft().player; if (itemStackIn != null) { GlStateManager.pushMatrix(); if (itemStackIn.getItem() instanceof ItemMelee) { if (!player.isSwingInProgress) { /** * For the right hand */ GlStateManager.pushMatrix(); GlStateManager.glEnableClientState(GL12.GL_RESCALE_NORMAL); mc.getTextureManager().bindTexture(((EntityPlayerSP) player).getLocationSkin()); GlStateManager.translate(1F, 1F, 0F); GlStateManager.rotate(125.0F, 0.0F, 0.0F, 1.0F); GlStateManager.rotate(180.0F, 1.0F, 0.0F, 0.0F); GlStateManager.scale(1.0F, 1.8F, 1.0F); GlStateManager.translate(0.19F, -1.14F, 0.3F); Render render = Minecraft.getMinecraft().getRenderManager().getEntityRenderObject(mc.player); mc.getRenderManager().getEntityRenderObject(mc.player); RenderPlayer renderPlayer = (RenderPlayer)render; float f11 = 1.0F; GlStateManager.scale(f11, f11, f11); renderPlayer.renderRightArm(mc.player); GlStateManager.popMatrix(); } this.renderItemThirdPerson((EntityPlayer) player, itemStackIn); GlStateManager.popMatrix(); return; } } } public void renderItemThirdPerson(EntityPlayer player, ItemStack itemStack) { GlStateManager.translate(0.0F, 0.0F, -0.05F); GlStateManager.rotate(180, 1.0F, 0.0F, 0.0F); GlStateManager.rotate(-15, 0.0F, 0.0F, 1.0F); GlStateManager.rotate(78, 0.0F, 1.0F, 0.0F); GlStateManager.translate(0.0F, 0.7F, 0.25F); GlStateManager.rotate(15, 0.0F, 0.0F, 1.0F); double scale = 1.2D; GlStateManager.scale(scale, scale, scale); } } -
Trying to draw a hand when holding an item.
FireIsH0t replied to FireIsH0t's topic in Modder Support
On which method I should use and to put my previous code in -
Trying to draw a hand when holding an item.
FireIsH0t replied to FireIsH0t's topic in Modder Support
Are you sure? Now when I click ctrl + o I am limited to these methods. http://prntscr.com/lnf97o -
Here is my code: RenderItem Class: https://hastebin.com/ofugirorey.java but when I launch client it doesn't show the hand I need http://prntscr.com/lnefos want it to look like that. ItemMeele class: https://hastebin.com/bopenumete.java