Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mcDandy

Members
  • Joined

  • Last visited

  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. mcDandy joined the community
  12. 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); } }

Important Information

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

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.