Everything posted by Animefan8888
-
1.11 furnace hooks. how do i tap into a furnace the easy way?
You can create a custom block that extends BlockFurnace and TileEntityFurnace and just use the BlocPlacedEvent to override it.
-
[1.11] Doing damage to items on craft.
new ItemStack(item, stackSize, damage/metadata)
-
[1.10.2] Animating Armor
- [1.10.2] Animating Armor
Sounds like you will need to use a capability to store if the Armor should be animated on a specific entity.- [1.11] Doing damage to items on craft.
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.- [1.11] Doing damage to items on craft.
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
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?
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?
What is your goal?- Feedback wanted on a possible new blockstates JSON format
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 } }- [1.10.2] Need help with OpenGL
Could you post what it looks like when you place another one down? Are they facing the same direction when you place them down?- Multi-Part functionality Question.
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
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.
Switch over to the IItemHandler capability.- [Solved] [1.11] Creating Quarry
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.- [Solved] [1.11] Creating Quarry
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.- [Solved] [1.11] Creating Quarry
What are the values of chunkX and chunkZ?- [1.10] How to Entity Make Attack
EntityAIAttackMelee is a vanilla class and wont call you private method of tryAbility.- [1.10.2] Getting crafting/smelting recipe from item
Loop through the recipes. Ie FurnaceRecipes.instance().getSmeltingList() or CraftingManager.getInstance().getRecipeList()- [1.10.2]Replacing 1.8.9 methods
I don't know why you are checking if the Item is not null, but it depends on what you want to do.- [1.10.2]Replacing 1.8.9 methods
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.- [1.10.2]Replacing 1.8.9 methods
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?- [1.10.2]Replacing 1.8.9 methods
What was Block#getStateForEntityRender? and EntityPlayer#getHeldItem(EnumHand) or something like that.- [Solved] [1.11] Creating Quarry
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)); } }- [1.10+] ItemHandler Output Slots
This was straight from the interface ie new IItemHandlerModifiable() { // Methods }; Edit: But yes you should be able to. - [1.10.2] Animating Armor
IPS spam blocked by CleanTalk.
Important Information
By using this site, you agree to our Terms of Use.