-
Posts
6157 -
Joined
-
Last visited
-
Days Won
59
Everything posted by Animefan8888
-
1.11 furnace hooks. how do i tap into a furnace the easy way?
Animefan8888 replied to trollworkout's topic in Modder Support
You can create a custom block that extends BlockFurnace and TileEntityFurnace and just use the BlocPlacedEvent to override it. -
new ItemStack(item, stackSize, damage/metadata)
-
Sounds like you will need to use a capability to store if the Armor should be animated on a specific entity.
-
I think you mean - return a new ItemStack with a damage value of 1 less than the itemStack's damage value? You'll also need to make the recipe so that it ignores the damage of your item. See here for more information https://github.com/TheGreyGhost/MinecraftByExample/blob/master/src/main/java/minecraftbyexample/mbe35_recipes/StartupCommon.java example © and http://greyminecraftcoder.blogspot.com/2015/02/recipes.html -TGG Oops yeah, I always get confused when it comes to the ItemStacks damge system Thanks.
-
return a new ItemStack but with a damage value of 1 more than the itemStack's damage value.
-
[1.11] How do you render in code models
Animefan8888 replied to Caseofgames's topic in Modder Support
First there is more than just Techne, but doesn't matter. Are you saying code the model yourself? Or use another way? (Because if there is another way I am very much wanting to know, and if it is coding it yourself I already do that ). -
1.11 furnace hooks. how do i tap into a furnace the easy way?
Animefan8888 replied to trollworkout's topic in Modder Support
Goal two can be accomplished via Reflection, but goal 1 and 3 are not possible with events right now at least not the way you want. You could use ItemSmeltedEvent which is fired when the player takes items from the furnace output slot. So basically you will need to put in a PR for a CanSmeltItemEvent and a SmeltingResultEvent. And Goal one is being done in the best way possible as of right now. -
1.11 furnace hooks. how do i tap into a furnace the easy way?
Animefan8888 replied to trollworkout's topic in Modder Support
What is your goal? -
Feedback wanted on a possible new blockstates JSON format
Animefan8888 replied to SuperGeniusZeb's topic in Modder Support
Ok quick question when you say "multiple-condition-tests are not possible" do you mean you can't do this "connected_down=true,connected_east=true,connected_north=true,connected_south=true,connected_up=true,connected_west=true":{ "model": "cube_all" }, or like this "connected_down=true": { "connected_up=true": { // Do stuff } } -
Could you post what it looks like when you place another one down? Are they facing the same direction when you place them down?
-
TileEntities and using TEs with Blockstates. Edit: As well as a custom ItemBlock that handles setting the block and then editing the TEs data that corresponds to placement. And if anywhere includes anywhere on the y level you would need a way to handle that your self.
-
How do you use block states with a Tile Entity Special Renderer
Animefan8888 replied to Caseofgames's topic in Modder Support
You use getActualState in your block and then access the TE with the world parameter and then your state data. -
Help checking if an item is valid for a slot.
Animefan8888 replied to mason12041204's topic in Modder Support
Switch over to the IItemHandler capability. -
You shouldn't be looking for IIventory anymore instead you should be looking for an IItemHandler capability. And i do not know what "Hammer Core" is.
-
Easiest way is to loop through the EnumFacings and use the offset function for an enumfacing that BlockPos has then do you if checks on capabilities.
-
What are the values of chunkX and chunkZ?
-
EntityAIAttackMelee is a vanilla class and wont call you private method of tryAbility.
-
[1.10.2] Getting crafting/smelting recipe from item
Animefan8888 replied to hugo_the_dwarf's topic in Modder Support
Loop through the recipes. Ie FurnaceRecipes.instance().getSmeltingList() or CraftingManager.getInstance().getRecipeList() -
I don't know why you are checking if the Item is not null, but it depends on what you want to do.
-
What was Block#getStateForEntityRender? and EntityPlayer#getHeldItem(EnumHand) or something like that. Both For EntityPlayer#getHeldItem(EnumHand), which one do i call? The main hand or the off hand? That depends is your function for both, main, or off? Then you need to check both.
-
What was Block#getStateForEntityRender? and EntityPlayer#getHeldItem(EnumHand) or something like that. For EntityPlayer#getHeldItem(EnumHand), which one do i call? The main hand or the off hand? That depends is your function for both, main, or off?
-
What was Block#getStateForEntityRender? and EntityPlayer#getHeldItem(EnumHand) or something like that.
-
int chunkX = getChunkXPos(); int chunkZ = getChunkZPos() for (int x = chunkX; i < chunkX +/- 16; x++) { for (int z = chunkZ; i < chunkZ +/- 16; z++) { world.setBlockState(state, new BlockPos(x, pos.getY(), z)); } }
-
This was straight from the interface ie new IItemHandlerModifiable() { // Methods }; Edit: But yes you should be able to.