Jump to content

mcDandy

Members
  • Posts

    13
  • Joined

  • Last visited

Everything posted by mcDandy

  1. Still nether portal. I have probably still missed something.
  2. Here it teleporter class And portal block class just in case I wanted them to function just like nether portal (find surface, build structure, link portals)
  3. I created custom portal block, which functions correctly, but it leaves behind nether portal not my own. The code is mostly copied from NetherPortalBlock and ITeleporter.
  4. Thank you. I thought I was registring it even capabilitie´s register method was net getting used.
  5. I am getting NPE when trying to get capability. I changed line 19 to lambda becouse it was crashing there with another NPE. What should I do to fix this one? https://github.com/mcDandy/Winks-mod/blob/9808257e01ba70048d0228e2eb0b7013900ea2b1/src/main/java/cz/mcDandy/winksmod/Capabilities/FairyEnergyCapability.java#L29crash-2020-06-07_11.11.17-server.txt
  6. what should set enumName to? Am I right with "FillerBlockType"?
  7. I do not know what to do with it... I will probably need to override it, but with what? Calling it directly is nonsense. sorry. I am complete noob with this.
  8. only promising is private FillerBlockType(String p_i50618_3_, Predicate<BlockState> p_i50618_4_) { this.field_214742_d = p_i50618_3_; this.field_214743_e = p_i50618_4_; } which is not accessible. or public static FillerBlockType create(String enumName, String p_i50618_3_, Predicate<BlockState> p_i50618_4_) { throw new IllegalStateException("Enum not extended"); } which is probably only there for erroring out.
  9. Thx. I will look on java forums how to add to enum.
  10. I have created dimension entirly of packed_ice and I want to generate ores there. I am using forge for 1.15.2
  11. try something like this. @Mod.EventBusSubscriber(modid="yourmodid", bus= Mod.EventBusSubscriber.Bus.FORGE) public class EventForge { public static final ResourceLocation DIMENSION_TYPE_RL = new ResourceLocation("yourmodid", "yourdimension"); @SubscribeEvent public static void onRegisterDimensionsEvent(RegisterDimensionsEvent event) { DimensionManager.registerDimension(DIMENSION_TYPE_RL, DIMENSION, null, false); } }
×
×
  • Create New...

Important Information

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