Jump to content

pitbox46

Members
  • Posts

    3
  • Joined

  • Last visited

pitbox46's Achievements

Tree Puncher

Tree Puncher (2/8)

0

Reputation

  1. I need to figure out how to make a coremod(as in ASM). My last post explains why I have to do this. I have an understanding about ASM, but what I don't at all understand is the forge implementation of ASM. There don't seem to be any tutorials on creating a coremod for versions past minecraft 1.12 and it seems like the forge api for coremodding has had some changes since then. I looked at https://cadiboo.github.io/tutorials/1.14.4/forge/99.99-coremod/ and the associated code, and I tried implementing a coremods.json to my /META-INT and a redstone_remote_transformer.js to my /resources, but the javascript file isn't loaded at all. My questions are: Why is javascript used for the transformer? How is the javascript transformer called? Thanks!
  2. Well, that sucks. Then I would have to use a core mod? I'm not too knowlegeable on core modding other than it is advised to use a different apporach and 99% of the time there is some better way. Would a purely additive core mod, a mod that only adds fields and classes, still cause issues with other mods? Also, is there a way to change the class of a minecraft block without registering an entirely new block? If I could simply make a subclass of a block's existing class, I could register the block as being a part of the new sub-class which would contain functionality for what I want to do. This would, of course, only apply the functionality to blocks that I make a new sub-class for.
  3. I am trying to make a mod that would use a redstone remote in order to remotely connect a redstone source block to a destination block. I have encountered issues because redstone in minecraft "pulls" from surrouding blocks and there doesn't seem to be a way to "push" redstone into a block. The only way I could think of is to set the state of the destination block to BlockStateProperties.POWERED, but the issue is that I'm pretty sure that I would have to set the state every tick because World.isBlockPowered(pos) would be false(unless the block is powered from another source). This solution seems suboptimal if it would even work at all. A better alternative would be to change World.java so that there is some way to set isBlockPowered(pos) or include an if statement inside the function that would check if the BlockPos should be powered. Another alternative would be to change the classes of the blocks themselves to include some logic that would check to see if the BlockPos should be powered. Either way around, I am not sure how to solve my problem without a core mod. I have looked at both reflection and dependency injection, but neither seem to help with modifying a source class that is called by other source classes. Any help is appreciated!
×
×
  • Create New...

Important Information

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