
MCrafterzz
Members-
Posts
285 -
Joined
-
Last visited
Everything posted by MCrafterzz
-
So how can I fix it then. You can download the full sourcecode here: https://github.com/MCrafterzz/minecraft-mod/blob/master/src.zip
-
I'm using I18n for my config: String worldCategory = I18n.format("worldgen"); String craftingCategory = I18n.format("crafting"); But I18n doesn't work serverside, so what is the replacement?
-
Crash log maybe? Eclipse log?
-
That's why we will add more advanced things to, I plan on adding flowers. I will also add a chest and a furnace when I get it working
-
I have
-
Added code for a wall, but I don't know where I should create a new wall
-
Nice!
-
Nice, I'll proberly come back to it and add some stuff. I Think it will be very helpful for the comunity
-
[1.10][Solved] Make config options show up in gui
MCrafterzz replied to MCrafterzz's topic in Modder Support
Thank you very much, it worked perfectly! -
Hello, I've sucessfully created a config file. I've also managed to make so that you could open a gui in game from the mod screen. I've made two cattegories but don't know how to add the options in there. My code: Config: http://pastebin.com/Z1Yykgvx ModGuiFactory: http://pastebin.com/0Q5kBUQ2 GuiConfig: http://pastebin.com/J8XTdMWG CommonProxy: http://pastebin.com/tJGehBRW Config file that it creates: http://pastebin.com/0jb31F6W
-
I mean this code: @SubscribeEvent public void attackEvent(LivingAttackEvent e) { float damage = e.getAmount(); ItemStack activeItemStack; EntityPlayer player; if (!(e.getEntityLiving() instanceof EntityPlayer)) { return; } player = (EntityPlayer) e.getEntityLiving(); if (player.getActiveItemStack() == null) { return; } activeItemStack = player.getActiveItemStack(); if (damage > 0.0F && activeItemStack != null && activeItemStack.getItem() instanceof ItemShield) { int i = 1 + MathHelper.floor_float(damage); activeItemStack.damageItem(i, player); if (activeItemStack.stackSize <= 0) { EnumHand enumhand = player.getActiveHand(); net.minecraftforge.event.ForgeEventFactory.onPlayerDestroyItem(player, activeItemStack, enumhand); if (enumhand == EnumHand.MAIN_HAND) { player.setItemStackToSlot(EntityEquipmentSlot.MAINHAND, (ItemStack) null); } else { player.setItemStackToSlot(EntityEquipmentSlot.OFFHAND, (ItemStack) null); } activeItemStack = null; if (FMLCommonHandler.instance().getSide() == Side.CLIENT) { player.playSound(SoundEvents.ITEM_SHIELD_BREAK, 0.8F, 0.8F + player.worldObj.rand.nextFloat() * 0.4F); } } } }
-
Copy your whole mod folder that contains eclipse, run, scr and etc. Then open it with eclipse on a other computer when you have imported that code to the computer. I think this works, try
-
[SOLVED][1.9] Trying to make bedrock breakable
MCrafterzz replied to Cake12356's topic in Modder Support
No problem -
[SOLVED][1.9] Trying to make bedrock breakable
MCrafterzz replied to Cake12356's topic in Modder Support
I don't know what the world gen code but it is proberly name something like WorldGenBedrock check in the forge src or wait for someone else that knows more -
[SOLVED][1.9] Trying to make bedrock breakable
MCrafterzz replied to Cake12356's topic in Modder Support
I'm sorry but I don't think it's possible to make bedrock breakeble without editing base files, so a better solution is to add you own bedrock (can use the same texture if you wany). Then you can spawn your bedrock in the world -
[1.7.10] importing mods to make addons
MCrafterzz replied to flamedragonX2's topic in Modder Support
1.7.10 is no longer supported update to 1.9.4 for better support -
Ok
-
What why?
-
I checked in Item.java and the thing he had missed was @Nullable