Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

FireIsH0t

Members
  • Posts

    57
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

FireIsH0t's Achievements

Stone Miner

Stone Miner (3/8)

1

Reputation

  1. 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/
  2. For some reason when I test and join my forge server on local it gives me this weird connection terminated error. Here is the logs or error from me trying to join it from my intellij client: https://paste.gg/p/anonymous/2d287a64d6f948dcba523c1f9f480dd0
  3. I am trying to do rendering on a json model
  4. 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(); } }
  5. /** * 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?
  6. 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); } } }
  7. Update I removed the json file and this happens now:
  8. 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());
  9. 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); }
  10. 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
×
×
  • Create New...

Important Information

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