Jump to content

BURN447

Members
  • Posts

    60
  • Joined

  • Last visited

Everything posted by BURN447

  1. Any ideas? I'm lost, and I can't get my mod to build into a Jar at all, which is severely hampering my ability to release a new version.
  2. I'm running into an issue when I run gradlew build, but I run into the issue where I get returned an issue saying Cause: Duplicate Entry: I've run ./gradlew build --stacktrace and the output was I'm not sure what to do in this case. I've reinstalled forge and run ./gradlew cleanCache and ./gradlew clean
  3. Figured it out using this solution https://stackoverflow.com/questions/27623326/minecraft-forge-not-loading-textures
  4. I'm running into an issue where my mod is not loading any asset files, including block models or language files. I'm honestly not sure what can be causing it, as I have tested with a different modid and not made any progress. Here is a log, and the source can be found at https://github.com/BURN447/DartcraftReloaded
  5. I'm sorry about getting slightly frustrated about that. I can't believe I missed that in all my bug hunting.
  6. It's supposed to be null if there is no blockstate stored in the wrench. That's why I was checking if == null. I was told to look at 1 line of code that I already checked out all combinations of.
  7. So with this, If I don't have the null checks, I end up crashing from a value cannot be null exception. The value is going to be null if there is no data stored in the capability and will be ~null if there is a block stored in the wrench. Is there any sort of hint you can give, cause I know you don't like giving code to modders.
  8. So I've run into an odd problem, My capability is not saving one of its fields between world loads. However, it is saving the other field. I can't quite figure out why it is happening, and I'd be appreciative of any help anyone can provide. Item Class: https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/Items/Tools/ItemForceWrench.java Capability Package: https://github.com/BURN447/DartcraftReloaded/tree/master/src/main/java/burn447/dartcraftReloaded/capablilities/ForceWrench
  9. You 100% need to know basic programming principles, such as counters, classes, abstraction, etc. to be able to do anything higher level than a pretty basic mod. There's a reason that nearly every Modding tutorial recommends learning java first, otherwise you're just going to be copy and pasting code that you don't understand. This can lead to extremely inefficient code and code that just flat out is unnecessary and useless.
  10. I would, but this only occurs after hours and hours of continuous play, and I haven't been able to find any way to replicate the bug. It just happens, without anything specific I've been able to pin down.
  11. You need to allocate more memory. This section outlines that the garbage collector has run out of memory. In this case you're going to need to allocate more memory. How much memory do you currently have avaliable in your system and how much is allocated to the game?
  12. I'm running into an issue that I cannot replicate, but randomly when using one of my items that has a custom capability attached, it randomly resets/disappears back to the default. I'm assuming this happens after damage, but I have not been able to find any relation between when this happens. Would anyone know a reason behind these capabilities resetting to their default state? Capability Code: https://github.com/BURN447/DartcraftReloaded/tree/master/src/main/java/burn447/dartcraftReloaded/capablilities/ToolModifier Item it is resetting on: https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/Items/ItemArmor.java If this doesn't work, I'll probably just rewrite my code to use hidden enchantments
  13. How would I go about that? I haven't been able to find any resources on how to do that, and I can't think of any mods that do this to look at.
  14. I'm trying to add mobs drops to bats through code, but I can't find the loot pool to edit because the bat.json file is empty. Is there a certain way I should do this? Code: https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/Events/lootTableLoadEvent.java
  15. I'm not 100% sure what I'm doing wrong, since I've been fine on my other two tile entities. I'm not creating a Tile Entity at all on block placement. Tile Entity Class: https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/tileEntity/TileEntityTimeTorch.java Block Class: https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/blocks/torch/BlockTimetorch.java Proxy with Registration: https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/proxy/CommonProxy.java Full Repository: https://github.com/BURN447/DartcraftReloaded
  16. When I place my block extending BlockLog, I immediately crash. Log: https://pastebin.com/qUYQ02YY Code: https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/blocks/BlockForceLog.java
  17. That's the thing. I've attempted to copy the vanilla code exactly, but when I do that, they always render as fast. The code that I am using now switches, but it runs into this problem. At the moment, I may just always have them in the fancy model
  18. I have made my own leaves class, but I have encountered an error where when switching between fast and fancy graphics settings, one or two leaves will not change and will continue to persist as the old graphics setting. Leaves Code https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/blocks/BlockForceLeaves.java Picture of the issue
  19. Ok. I should be able to do that. There's nothing like it that I could find in the vanilla JSON files, so I was a little confused
  20. The Block Model in the world and in hand is 3D and crossed, where a vanilla sapling renders as a 2D texture.
  21. I'm having an issue with my sapling model. There's something up with the model when I'm holding it in my hand or when it's on the ground. Images of Problem: https://imgur.com/a/dq3bZIe JSON Files https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/resources/assets/dartcraftreloaded/blockstates/force_sapling.json https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/resources/assets/dartcraftreloaded/models/block/force_sapling.json
  22. I knew it was going to be something stupid that I overlooked. Thanks!
  23. I have been trying unsuccessfully to get my leaves to decay, but no matter what I have done, I have not been able to figure it out. Leaf Code: https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/blocks/BlockForceLeaves.java Log Code: https://github.com/BURN447/DartcraftReloaded/blob/master/src/main/java/burn447/dartcraftReloaded/blocks/BlockForceLog.java
  24. I've been running into this bug in both a development environment and in a built jar. I cannot find a solution to this anywhere on the internet, and I was wondering if anyone can interpret this differently than I did. The code is all available at https://github.com/burn447/dartcraftreloaded
  25. I'm attempting to remove the ability for a creeper to explode when it is hit by a sword. I know that I need to remove EntityAICreeperSwell in the Entity class, but I'm not sure how to remove a value from the Set, because it is creating the object within the addTask method call.
×
×
  • Create New...

Important Information

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