Jump to content

Budschie

Members
  • Posts

    172
  • Joined

  • Last visited

Everything posted by Budschie

  1. Hello! Today, I tried to make some blocks(with item blocks), but this time not with the "old" way which would be to use a register event directly: I wanted to use the deferred registry. But I couldn't get it working right: When I registered an item block (which would eventually call new Block().asItem()), the game said that there would be an duplicate registry entry. Also, I have no idea how to use asItem with an item group. So, it would be great if you could help me. -Budschie
  2. @vemerion That's exactly what I was looking for! Thanks!
  3. Hello there, I'm trying to make a Diplomacy mod for minecraft where I need to store some data per chunk, and generate that data when the chunk is generated. How can I accomplish that, and what version of minecraft should I use, since the current minecraft version is still in development? Thanks for any replies. -Budschie
  4. @Beethoven92 Well, my mod almost entirely consists of world generation related stuff... lol. So I think, I just downgrade again, and wait until 1.16.2 gets a recommended version.
  5. @zOnlyKroks Well, it could be that you said "item/generated" rather than "minecraft:item/generated". If this doesn't work, please provide further information, such as model loading logs or ingame-screenshots.
  6. @zOnlyKroks Well, you can do that in the json files of the item. You can look up some good examples and some other features in the minecraft wiki. The minecraft wiki article is called "Model". Hope this answer helped.
  7. Hello PianoManu. To me, it seems, that you could just remove the call on both sides, and it should work fine. I've never used the "getDefaultInstance"-method before, so I could be wrong.
  8. Hello there! It has been quite a while since I last touched minecraft modding, but now I decided to continue developing the deepnether mod. Anyway, I recently updated my modding workspace from 1.16.1 to 1.16.2, expecting that not much would have changed. But as I loaded the project up, I noticed that all my biome classes were full of errors, which were caused by the removal of the Biome class. So, what should I do now? Was the class just renamed, or did the whole process of creating biomes change? Thanks for any help.
  9. Also, there used to be a class called "ModDimension", and the "Dimension" class seems to be gone too...
  10. @Beethoven92 OK, it's here: https://github.com/Budschie/Deepnether-Mod/blob/master/src/main/java/de/budschie/deepnether/dimension/DimensionInit.java Hope this helps you.
  11. Hello. A large portion of my mod's code is about dimension stuff, but it seems that this part of minecraft has rapidly changed since 1.15? So, how can I register and create dimensions properly? It would be great if you could help me with this topic.
  12. @poopoodice Ok, thanks, it worked!
  13. Hello. So, as the title suggests, I currently have some problems regarding the registration of commands. I used to do this like this: @SubscribeEvent public void onServerStarting(FMLServerStartingEvent event) { CommandToggleSel.register(event.getCommandDispatcher()); CommandSaveSelection.registerCommandTpDim(event.getCommandDispatcher()); CommandPlaceStructure.registerCommandTpDim(event.getCommandDispatcher()); CommandPlaceTree.register(event.getCommandDispatcher()); CommandPlayIntro.register(event.getCommandDispatcher()); } But that doesn't seem to work anymore. So, what should I do instead of this?
  14. So, if you place your structures with a structure block, it works fine, but when you use a structure block within code, it doesn't?
  15. I'm not sure if that could solve the problem but you never seem to use the BuildingStructureProcessor, which is involved in replacing blocks as far as I can tell.
  16. @Ugdhar Ok, thanks!
  17. Hello. Today, I'd like to know how to update the minecraft mappings for forge. So, can anyone tell me how to do that? I'd really appreciate that. Thanks.
  18. @beestrug I think you can't instantiate the DeferredRegister like this anymore. Instead, use "DeferredRegister.create(...)"
  19. @Draco18s Well, I couldn't find any of those methods in there, and these code lines won't compile either: StructureDataHandler.onSaveEntireWorld(((ServerWorld)event.getWorld()).getSaveHandler(), event.getWorld(), false); message.seed = contextSupplier.get().getSender().getEntityWorld().getSeed(); Both saying that the method doesn't exist in one ore another way. Maybe that's because I updated to the newest build of forge?
  20. As far as I can tell, you want to have a slab thats not symmetrical(rotation/facing). So you need at least two properties, one of which being a facing property. For further information, you can always look into the vanilla class(in 1.16.1: "SlabBlock.java") Hope I could help you.
  21. To render a background texture, I think you should use "AbstractGui.blit". The methods parameters may be unnamed. To display the texture you want to display, you have to bind it with a resource location first.
  22. Hello. I'm still doing some updating to version 1.16.1... My problem currently is that I can't find the methods "World.getSaveHandler()" or "World.getSeed()". Are there moved anywhere, or are they entirely removed? I'd be glad if you could solve this mystery. Thanks for any answeres.
  23. Hello. I'd like to implement my own biome provider with biomes for my dimension. But I always got stuck at some point, because most of the function names there are unnamed. So, basically, I have no idea what I should put into func_230320_a_, func_230319_a_ and getNoiseBiome. I've already looked into the vanilla classes, but those weren't informative enough. So, I'd be glad if you could solve this problem. Github-Link: https://github.com/Budschie/Deepnether-Mod/blob/master/src/main/java/de/budschie/deepnether/dimension/DeepnetherBiomeProvider.java
  24. Hello. So, as the title suggests, I'd like to know what the issue with static initializers on a registry object is. I often saw people saying that it's wrong, but I almost never saw an explanation.
×
×
  • Create New...

Important Information

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