Jump to content

Animefan8888

Forge Modder
  • Posts

    6157
  • Joined

  • Last visited

  • Days Won

    59

Everything posted by Animefan8888

  1. Add a few printlns to that method to see why it isn't getting set.
  2. It's not implemented in forge 28.1.19 I don't know if it has been implemented yet. 28.1.26 being the latest.
  3. I doubt that it does, but it fires every frame as it needs to. Because the fog is rendered every frame. If it is lagging it's because the value you set the density to. The event gives you access to an Entity the Entity knows what World it is in. The World knows what Dimension it represents. Think you can solve it from there.
  4. ? If I understand correctly you went and looked at ItemStack#getItem and saw that it returned an Item. You need to check if ItemStack#getItem() instanceof Hatchet/LumberAxe. instanceof is a key word in Java. Look it up if you don't understand it.
  5. You'll need to check if the stack.getItem() is an instance of Hatchet and or LumberAxe. Then in the build.gradle file from when you setup your directory you'll need to specify that Tinkers Construct is a dependency of your mod.
  6. Firstly proper etiquette don't post code that doesn't belong to you. Yes even if it is on github/open source. The proper thing to do would be to link it to their github. Secondly do you know Java or any object oriented language similar to Java?
  7. Look at the return type of Block#getDefaultState... they aren't compatible.
  8. We were both blind diesieben... The problem is that this will never be true. Use ItemStack#getItem and compare item instances instead.
  9. The IRecipeType is only used in code. The type in the Json refers to the registry name of the IRecipeSerializer. As an extension. This will result in the IRecipeType being registered under minecraft:steeping which you don't want. Pass modid:steeping instead.
  10. Can you confirm if the event is being fired. Put a print line there or better yet step through that method with your debugger.
  11. test_steeping.json is not the same as Its also either a JsonArray or a JsonObject so in your Json you need to choose one.
  12. I was the blind one this time diesieben It goes right above your Event method.
  13. Make the other blocks also emit light? Don't know if that is an option, but that is caused by the lighting engine in Minecraft.
  14. Is your event even being called? Where do you register it?
  15. I'm gonna need to see the line of code and the exact error. Unless this is you saying that you've solved it.
  16. There are several sub-events to this one, the one you want is called PlayerInteractEvent.RightClickBlock. You have the BlockPos where the player right clicked(aka where the Block is in the World where they right clicked). That means you have access to which Block they right clicked. Check to make sure it was a Gold Block. If it was a Gold Block then use BlockPos#offset to offset in the UP direction and call World#setBlockState to put a Gold Block in the World at that offset position.
  17. Threads aren't closed under normal circumstances. They are only closed when things go awry, like necro-ing and on versions where support isn't offered anymore. Namely 1.8.9 and 1.7.10.
  18. The second argument should be the RecipeWrapper field, and the first one should be your RecipeType. Also instead of just "steeping" this should contain your modid.
  19. This can be shortened to (int) world.getBlockState(pos).getValue(BlockPotato.AGE); Though it does the exact same thing just a step further down. You should probably use IBlockState#getValue for some error checking.
  20. You use ItemStackHandler to initialize it though. And ItemStackHandler is dun dun dun a IItemHandlerModifiable instance. Therefore cast it.
  21. This is still wrong...you're not using the fact that BlockPotato.AGE is static. You don't use an instance to access it. Use BlockPotato.AGE instead of casting and using an instance to access it.
  22. No the container remember the inventory. Then EntityPlayerMP#sendContainerToPlayer will update said information based on what the server said. I'm not sure what your problem is I have 0.something similar in some code of mine that works perfectly, though I don't just deny slotClick(aka I do call the super in it).
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.