Jump to content
Search In
  • More options...
Find results that contain...
Find results in...


  • Content Count

  • Joined

  • Last visited

  • Days Won


octa last won the day on May 28

octa had the most liked content!

Community Reputation

2 Neutral

About octa

  • Rank
    Tree Puncher
  1. Yep, that did it. I have no idea where it went or why it's gone, but I copied it from an old commit and re-added it. Now everything works properly. Thanks a bunch.
  2. Bump. I've put some work into this in my free time but haven't made any headway. My mind is boggled, and I'm hoping that the issue is just a simple mistake that I'm overlooking, but I've checked everything I can think of.
  3. So, I recently created data generators for all of my resources (with the exception of particles, which I am not registering or doing anything with right now). When I start up the game, I get the warning in the post title. Sure enough, when I load into the game my mod is missing all resources. I am certain that all of my resources are located in the right spot, and I've spent a while playing around with my build.gradle to see if there was any issue with that. I'd appreciate any help I can get with this. Here's a debug log of when I start the game: https://pastebin.com/8JggpiqY And here'
  4. Read it again, the expression is !(nether || end) Then why did registering the feature fix OP's issue? I'm just genuinely curious how this could break his code but not mine. I'll be interested if you find that source.
  5. They are the same function. isRemote is MCP mappings, isClientSide is Official mappings, which are now the default shipped with the mdk.
  6. Adding on to this, and for my curiosity, could somebody tell me why my code does work? I was looking at this post to see if I could help because we have nearly identical code, but I couldn't figure out why it wasn't working for him. Nowhere in my code do I do this, and I also don't tag any of my functions with @SubscribeEvent. Maybe I'm just misunderstanding how registries and events work. Here is my ore generation class: And here is my main: And here is my repo if anyone wants to take a deeper dive: https://github.com/eddie1101/Voidcraft
  7. This works, but it took me a little while to figure out why. I didn't realize that ITeleporter#getPortalInfo was responsible for a lot of the vanilla implementation. Thanks for the help! Here's my code for anyone else struggling, but it's very simple.
  8. So I tried this, and in looking at the vanilla code I'm making a few assumptions. It seems that when you call Entity#changeDimension, it will pass in the vanilla lambda for repositionEntity to your teleporter, which basically means in my code for Teleporter#placeEntity I want to completely ignore that lambda and do everything I need to do in placeEntity instead. I just want to teleport like normal, but without any of the vanilla portal shenanigans, so I basically just copied the vanilla lambda in changeDimension and removed the parts that I don't want, which gives me a null pointer. The proble
  9. I have block which reads nbt data about position and dimension from an item in its inventory and sends any entities on top of it to that position and dimension. This works fine in most cases, but in particular when sending an item, player, or mob (that I have tested) from the end to the overworld, the entity will be sent to spawn instead of the specified position. I assume this is related to how hopping in the portal after defeating the dragon sends the player back to the overworld's spawn. Does anybody know how I can get around this? Relevant code: https://github.com/eddie1101/Voidcraft/
  10. Thanks for the insight. I was able to resolve all my problems. Perhaps if I posted my code one of you would have noticed this before me, but I was removing any tile entities within the volume before destroying the blocks, which of course meant there was no inventory left to drop. Thanks for the help.
  11. It seems like onRemove is deprecated according to the docs, and it doesn't exist in Block or AbstractBlock according to my IDE. onReplaced is the closest I could find, (although it is also deprecated) and that's where I drop the inventory of my custom containers, so maybe that's what you meant?. onReplaced doesn't really fit what I'm trying to do here either. I was hoping there was some convenient method that handles breaking blocks in any context but that doesn't seem to be the case. Could you clarify how you might go about doing this?
  12. I have an item that on right-click destroys blocks in a 3x3x3 volume. Blocks are dropped as intended, but chests do not drop their contents. I've tried world.destroyBlock and block.harvestBlock but neither of them do the trick. Other containers don't drop their contents either, and I've also noticed that a jukebox that is playing a disc will continue playing music after being destroyed with this item, so I must be missing something important. What's the appropriate way to destroy blocks by using an item?
  13. Oh, I forgot all of the annotations in my blocks class. ¯\_(ツ)_/¯ Thanks for the eye.
  14. Hello, I've recently decided to clean up my mod because it was a huge mess, so one thing I did was move all of the registration out of the one "registration" god class and divide the registration tasks into categories of block and item. Somewhere during this process, I must have gone wrong because my mod either fails to load or inevitably crashes when loading a world. I've played around with adding listeners and registering classes to the forge and mod busses, and gotten different errors. One thing I noticed is that they all lead to null pointers to items whose fields should have been injected
  15. Can you tell me how you're viewing the image? When I view it in gimp it looks pretty clean: Edit: Using Gimp's threshold alpha tool worked wonders. Thanks for the help.
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.