-
[1.8] My First Modding Experience
Video Will be Live shortly.
-
[1.8] Drop item from a vanilla block
if the block already has an item then you can use HarvestDropsEvent. you first add a chance float then add your item. if the block has no drops or you want the item to drop with any tool (such as allowing obsidian to drop from an iron pciaxe) then you can use BreakEvent and spawn the item in the world.
-
Point system
to store your own variables per player you want to create a class that extends IExtendedEntityProperties, but then you will need to create your own graphic GUI overlay by creating a class that extends Gui. I suggest looking up a tutorial on those classes first.
-
[1.7.10] Minecart Break Event?
I am not sure about minecart since it is an Item not a block, I have not yet messed with it but there is a specific event dedicated to minecarts 'MinecartEvent'. sadly I have no idea how to get the destruction or death of it though
-
[1.8] [solved]custom command help
What? No! you're not? that's how I did all of my commands and they work, what's the better way?
-
[1.8] [solved]custom command help
for 1.8 you want to implement ICommand Also I can not see a constructor, should add one with no parameters but inside the constructor add your aliases you want it to allow.
-
Help!
honestly I'm just guessing. but it will add a new model mesh renderer to your item.
-
Help!
maybe you are following an out of date tutorial. try it that way.
-
Help!
the second half of my post....
-
Help!
coaldust = new coaldust().setUnlocalizedName("coaldust").setTextureName("al:coaldust").setCreativeTab(tabAlchimia); add these methods in the constructor instead. you are not registering your textures try this... if (event.getSide() == Side.CLIENT) { regTexture(blockSau); } public void regTexture(Item item) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher().register(item, 0, new ModelResourceLocation(MODID + ":" + item.getUnlocalizedName().substring(5), "inventory")); }
-
Help!
post your code. code helps, always reference code.
-
How to craft with modded items
the letter goes first. 'D', StormMastery.extraction, 'P', Items.potionitem);
-
Help!
you need to register and render the item BEFORE calling the recipe, I do all recipes in init and all item creating, registering, rendering etc in pre-init
-
[1.8] custom tool effectiveness
Ok it seems I can't do this from 'Block.isToolEffective()'. I'll try just doing getStrVsBlock and see if it is > 1.0f
-
[1.8] custom tool effectiveness
a) I can't seem to get 'world' from playerEvent.BreakSpeed so I had to make my own to not need that parameter. b) I'm still a little confused about how the classes calculate this all, it seems pickaxes are a special, other then that it calls the getHarvestTool method on the block and checks if that is ok? or something like that. it is a bit inconsistent and hard to follow but I'm learning my way through it.
IPS spam blocked by CleanTalk.