Jump to content

Cadiboo

Members
  • Posts

    3624
  • Joined

  • Last visited

  • Days Won

    58

Everything posted by Cadiboo

  1. Are you using @Config or Configuration? With @Config you can just set your fields and then force a sync from anywhere
  2. Show your code preferably post it as a GitHub repository
  3. You just need to draw a box in your TESR. Multiple examples can be found in many open source mods. You should use the debugger to step through your code.
  4. You need a tile entity, and a (Fast)TESR. In your TESR or FastTESR render a cuboid with equal width & length and a much larger height. You can look at the beacon renderer code, or the dragon death renderer code, which everyone has in their attached libraries in their IDE. You will also need to make your render bounding box bigger if you want the tile to render when offscreen
  5. Define glow. if you mean “render fullbright on the player” it’s very easy. if you mean create light around the player, you can make a light-emitting block that follows you around (reasonably difficult), or you can depend on OptiFine’s Dynamic Lights feature and/or the dynamic lights mod (probably pretty easy)
  6. What: Class naming conventions Why: Allow you and others to easily read and understand your code Consequences: Hard to read code How: Name your classes in TitleCase What: Method naming conventions Why: Readable code Consequences: Hard to read code, other developers vomiting when they read your code How: Your method names should be verbs in camelCase
  7. To elaborate What: Lowercase package naming Why: Some file systems (windows) considering “iTeMs” and “items” to be the same, but every other one considering them to be different. Consequences: Not doing this _may_ never cause any issues (and very likely won’t in your dev environment), but on other operating systems with different case-sensitivities from yours this can cause massive problems. How: Name your packages all in lowercase What: Packaging that reflects your web presence Why: Avoid name collisions - your web presence is unique so it is commonly used. Consequences: Errors loading classes with other mods installed, usually happens when 2 mods never changed their packaging from the default in the MDK. How: If you have an illegal character in your web presence, the convention is to replace it with “_”. If you don’t have a website, you can use your version-control repository as your web presence, e.g. “com.github.username”. If you don’t use version control, start using it! In the meantime you can use the packaging “mod.username.modid”.
  8. I think it’s a problem with BF’s fragile ASM. Make sure you have the latest version. If the problem persists, either make an issue on its GitHub tracker, uninstall it or download this mod which fixes it (I’m unsure if it’s compatible with codechicken core though) https://minecraft.curseforge.com/projects/renderchunk-rebuildchunk-hooks/files
  9. I think it’s probably the game resolution being too small to render all the pixels of your font, what does it look like in full screen?
  10. Where/when are you generating your structure? Ideally you would do it before lighting was calculated
  11. You should learn Java. You need to only copy the ModelLoader.setCustomResourceLocation line. You can’t have a method inside another method
  12. http://www.lmgtfy.com/?q=write+to+file+with+log4j
  13. You will need to load the textures for the model and tell the ObjLoader to load your model, then store a reference to it and render it in a Forge event.
  14. https://m.twitch.tv/videos/378515409
  15. You can load the model and texture yourself, and then render them in one of forges events. I think this is either a design choice for you to make, or I can’t understand what you mean.
  16. Getting to where we are with the deobfucation for minecraft has taken 7 years and thousands of people. Minecraft is always changing as it updates though, so this isn’t an accurate representation of how long it would take to reverse engineer something else. If you’re trying to reverse engineer something you should already be familiar with its concepts and common implementations of them. As such there isn’t any accurate time spent -> lines deobfuscated conversion.
  17. Just return false, no need for the variable That’s your problem, you always return the default state from getStateFromMeta
  18. I’m just gonna link this, read it, it’s all important. https://gist.github.com/Cadiboo/fbea89dc95ebbdc58d118f5350b7ba93 Slabs are a fairly complicated thing for a new Modder, as they involve 2 semi-seperate blocks and 1 custom itemblock. Heres my slab class (not how it’s abstract had has 2 subclasses, double & single) https://github.com/Cadiboo/Legendary-Winter/blob/master/src/main/java/geek/legendarywinter/blocks/BlockWinterstoneSlab.java I create the blocks with registry.register(setupBlock(new BlockWinterstoneSlab.Half(), "winterstone_slab")); registry.register(setupBlock(new BlockWinterstoneSlab.Double(), "winterstone_double_slab")); and the itemblock with final ItemSlab itemSlab = new ItemSlab(WINTERSTONE_SLAB_HALF, WINTERSTONE_SLAB_HALF, WINTERSTONE_SLAB_DOUBLE); final ResourceLocation name = WINTERSTONE_SLAB_HALF.getRegistryName(); itemSlab.setRegistryName(name); registry.register(itemSlab); I use a local variable and don’t chain setRegistryName because it returns an Item and not an ItemSlab, it’s not necessary though
  19. I believe you can do this with the logging library minecraft includes (log4j).
  20. Use an int or a double Short answer: you can’t Long answer: You could do it a number of ways, for example with a custom GUI. The simplest option is just store a backup value that is correct, and if parsing fails tell the user and fall back to the backup value
  21. Have you tried putting a breakpoint at initCapabilities?
  22. Please post the full log
  23. Can you explain this?
  24. That is how it should be done in 1.12.2 (it breaks other mods if you do it any other way) and must be done in 1.13 (any kth r way will crash instantly in 1.13). If it isn’t working, it indicates a bigger problem in your mod
×
×
  • Create New...

Important Information

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