Jump to content
  • Home
  • Files
  • Docs
All Content
  • All Content

  • This Forum

  • Advanced Search
  • Existing user? Sign In  

    Sign In



    • Not recommended on shared computers


    • Forgot your password?

  • Sign Up
  • Modder Support Latest Topics
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Announcements

    • LexManos

      Forge 1.12 and Announcement   06/17/17

      Please read this: http://www.minecraftforge.net/forum/topic/58706-regarding-minecraft-112-and-policy-changes/  

Modder Support

This is the support section for those modding with Forge. Help with modding goes in here, however, please keep in mind that this is not a Java school. You are expected to have basic knowledge of Java before posting here.
Sign in to follow this  
Followers 15

Subforums

ForgeGradle
Help and support for the new ForgeGradle system of building mods.
2775
Getting Started with the F…
By dat_boi
Yesterday at 03:23 AM

29636 topics in this forum

  • Sort By
    • Recently Updated
    • Last Reply
    • Title
    • Start Date
    • Most Viewed
    • Most Replies
    • Custom
  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next
  • Page 1 of 1186  
Common issues and recommendations
By diesieben07, November 23, 2017
3
3955
diesieben07
November 28, 2017
Help Editing Vanilla Blocks and Items
By xTekBlue, Tuesday at 07:41 PM
  • 1
  • 2
26
198
xTekBlue
12 minutes ago
[1.12.2] Dangerous alternative prefix
By ApexModder, 5 hours ago
2
44
ApexModder
4 hours ago
[1.12.2] Capabilities and networking
By MCrafterzz, April 18
  • 1
  • 2
29
564
MCrafterzz
5 hours ago
1.12 Itempacket
By NextInima, 14 hours ago  
  • beginner
4
64
diesieben07
11 hours ago
Event for player getting kicked from the server?
By kevinmd88, Tuesday at 05:19 AM
3
86
diesieben07
11 hours ago
1.10.2 textures not loading
By Elijah482, 17 hours ago
3
44
Draco18s
14 hours ago
Conditions in Advancements
By PanSzelescik, 21 hours ago
2
47
Draco18s
20 hours ago
[1.12.2] Logging to different log file
By Furgl, 21 hours ago
1
48
jabelar
21 hours ago
1.13 Source Code
By Cadiboo, Sunday at 07:17 AM
19
349
Draco18s
22 hours ago
Invisible blocks
By hipmag, yesterday at 04:04 PM
4
54
hipmag
22 hours ago
How to make my custom shears not use durability on blocks it dont shear?
By LilyKat24, Monday at 11:29 PM
2
67
LilyKat24
22 hours ago
[Solved] Multiple Creative Tabs
By TheMysticMinecart Myles, yesterday at 12:09 AM
12
145
Draco18s
23 hours ago
[SOLVED] [1.12.2] Dye able horse armor
By ApexModder, yesterday at 11:48 AM
4
102
ApexModder
23 hours ago
[SOLVED] Condition "block water" (Right click)
By iKreal, Monday at 06:18 PM
  • 1
  • 2
27
280
iKreal
Yesterday at 06:52 PM
NoSuchFieldError being thrown when trying to access Items class in net.minecraft.init
By Alsan Ali, yesterday at 04:07 PM
3
60
jabelar
Yesterday at 06:46 PM
[HELP] MCP 9.18 Twitch Error During Decompile
By PhilipMyCub, Tuesday at 11:44 AM
1
42
diesieben07
Yesterday at 05:40 PM
How to add a GUI "toxic"
By Dadoum, Monday at 08:26 PM
3
87
diesieben07
Yesterday at 05:31 PM
[1.12.2] Glowing potion effect not taking effect
By AgentEpsilon, Monday at 09:05 PM
2
79
diesieben07
Yesterday at 05:29 PM
forgeClient in launcher
By Lammendam, yesterday at 01:45 PM
1
90
larsgerrits
Yesterday at 05:06 PM
1.12, dragon firebreath entity texture wont render help.
By TheRPGAdventurer, yesterday at 06:20 AM
0
43
TheRPGAdventurer
Yesterday at 06:20 AM
[1.12.2] unable to remove itemstack from player inventory
By InterdimensionalCat, yesterday at 03:41 AM
13
98
InterdimensionalCat
Yesterday at 04:38 AM
[1.12] Mod Item Renders will not register
By Geometrically, yesterday at 03:24 AM
10
62
Draco18s
Yesterday at 04:31 AM
[SOLVED] Recipes don't work??
By iKreal, Tuesday at 09:03 AM
6
113
iKreal
Tuesday at 10:26 PM
Change player speed while on server side
By Curly_dev, Tuesday at 06:27 AM
3
91
Curly_dev
Tuesday at 07:30 PM
  • Prev
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • Next
  • Page 1 of 1186  
Sign in to follow this  
Followers 15
  • Posts

    • xTekBlue
      Help Editing Vanilla Blocks and Items

      By xTekBlue · Posted 12 minutes ago

      Problem solved, i wasn't calling the method on client's.  package xtekblue.mod.objects.blocks; import java.util.Random; import net.minecraft.block.material.Material; import net.minecraft.block.state.IBlockState; import net.minecraft.entity.player.EntityPlayer; import net.minecraft.init.Blocks; import net.minecraft.init.Items; import net.minecraft.item.Item; import net.minecraft.item.ItemStack; import net.minecraft.util.EnumFacing; import net.minecraft.util.EnumHand; import net.minecraft.util.math.BlockPos; import net.minecraft.world.IBlockAccess; import net.minecraft.world.World; import net.minecraftforge.oredict.OreDictionary; import xtekblue.mod.Main; import xtekblue.mod.init.ItemInit; public class SmoothObsidian extends BlockBase { public SmoothObsidian(String name, Material material) { super(name, material); setCreativeTab(Main.xtrablocks); setHardness(50.0F); setHarvestLevel("pickaxe", 3); setResistance(2000.0F); } public boolean onBlockActivated(World worldIn, BlockPos pos, IBlockState state, EntityPlayer playerIn, EnumHand hand, EnumFacing facing, float hitX, float hitY, float hitZ) { if(worldIn.isRemote) { return this.DoDropsOB(worldIn, pos, state, playerIn, hand); }else { return this.DoDropsOB(worldIn, pos, state, playerIn, hand); } } private boolean DoDropsOB(World worldIn, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand) { if (player.getHeldItem(hand) != null) { Item item = player.getHeldItem(hand).getItem(); if (item != ItemInit.INGOT_SAW && item != ItemInit.ENCHANTED_SAW) { return false; }else if(item == ItemInit.INGOT_SAW && item.getDamage(player.getHeldItem(hand)) == player.getHeldItem(hand).getMaxDamage()) { player.inventory.deleteStack(player.getHeldItem(hand)); worldIn.destroyBlock(pos, false); player.addItemStackToInventory(new ItemStack(ItemInit.OBSIDIAN_INGOT, 9)); return true; }else if (item == ItemInit.INGOT_SAW && item.getDamage(player.getHeldItem(hand)) != player.getHeldItem(hand).getMaxDamage()) { player.getHeldItem(hand).setItemDamage(player.getHeldItem(hand).getItemDamage() + 1); worldIn.destroyBlock(pos, false); player.addItemStackToInventory(new ItemStack(ItemInit.OBSIDIAN_INGOT, 9)); return true; }else if (item == ItemInit.ENCHANTED_SAW) { worldIn.destroyBlock(pos, false); player.addItemStackToInventory(new ItemStack(ItemInit.OBSIDIAN_INGOT, 9)); return true; } } return true; } } Working code ^^^ Last thing, is there a method i'm missing to allow a item to harvest a block regardless of level or even whether its a tool period? I can not find it.
    • xTekBlue
      Help Editing Vanilla Blocks and Items

      By xTekBlue · Posted 1 hour ago

      NEW CODE FOR METHOD private boolean DoDropsOB(World worldIn, BlockPos pos, IBlockState state, EntityPlayer player, EnumHand hand) { if (player.getHeldItem(hand) != null) { Item item = player.getHeldItem(hand).getItem(); if (item != ItemInit.INGOT_SAW && item != ItemInit.ENCHANTED_SAW) { return false; }else if(item == ItemInit.INGOT_SAW && item.getDamage(player.getHeldItem(hand)) == player.getHeldItem(hand).getMaxDamage()) { player.inventory.deleteStack(player.getHeldItem(hand)); worldIn.destroyBlock(pos, false); player.addItemStackToInventory(new ItemStack(ItemInit.OBSIDIAN_INGOT, 9)); return true; }else if (item == ItemInit.INGOT_SAW && item.getDamage(player.getHeldItem(hand)) != player.getHeldItem(hand).getMaxDamage()) { player.getHeldItem(hand).setItemDamage(player.getHeldItem(hand).getItemDamage() + 1); worldIn.destroyBlock(pos, false); player.addItemStackToInventory(new ItemStack(ItemInit.OBSIDIAN_INGOT, 9)); return true; }else if (item == ItemInit.ENCHANTED_SAW) { worldIn.destroyBlock(pos, false); player.addItemStackToInventory(new ItemStack(ItemInit.OBSIDIAN_INGOT, 9)); return true; } } return true; } The code below still does not seem to work, like it reverts back to normal. worldIn.destroyBlock(pos, false); player.addItemStackToInventory(new ItemStack(ItemInit.OBSIDIAN_INGOT, 9));  
    • xTekBlue
      Help Editing Vanilla Blocks and Items

      By xTekBlue · Posted 2 hours ago

      ok, any idea why the  is not working?
    • Draco18s
      Help Editing Vanilla Blocks and Items

      By Draco18s · Posted 2 hours ago

      Well, for one, that's not how you compare item stacks.
    • lavainminecraft
      Custom modpack crashing when loading up

      By lavainminecraft · Posted 2 hours ago

      But it usually only takes like one minute to work
  • Topics

    • xTekBlue
      26
      Help Editing Vanilla Blocks and Items

      By xTekBlue
      Started Tuesday at 07:41 PM

    • lavainminecraft
      4
      Custom modpack crashing when loading up

      By lavainminecraft
      Started 3 hours ago

    • ApexModder
      2
      [1.12.2] Dangerous alternative prefix

      By ApexModder
      Started 5 hours ago

    • MCrafterzz
      29
      [1.12.2] Capabilities and networking

      By MCrafterzz
      Started April 18

    • Elretha
      10
      Help with Forge server crash?

      By Elretha
      Started 7 hours ago

  • Who's Online (See full list)

    • nanoaquila
    • moonlyer
    • xTekBlue
    • TheMysticMinecart Myles
    • Ivanelcrack 2006
    • XsergeiX
  • All Activity
  • Home
  • Mod Developer Central
  • Modder Support
  • Theme
  • Contact Us

Copyright © 2017 ForgeDevelopment LLC Powered by Invision Community