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.

Grookey

Members
  • Joined

Everything posted by Grookey

  1. Is there any way to block a Item of being used in the LeftHand?
  2. To use the max and min height you need to change the VerticalAnchor you have set VerticalAnchor.aboveBottom and VerticalAnchor.belowTop, if you change it to VerticalAnchor.absolute it should work public class OreGeneration { public OreGeneration() { } public static void generateOres(final BiomeLoadingEvent event) { if (!event.getCategory().equals(Biome.BiomeCategory.NETHER) && !event.getCategory().equals(Biome.BiomeCategory.THEEND)) { exampleOreGenerate(event.getGeneration(), Predicates.NATURAL_STONE, ((Block) ExampleBlocks.EXAMPLE_ORE.get()).defaultBlockState(), (Integer) ExampleConfig.EXAMPLE_ORE_SIZE.get(), (Integer) ExampleConfig.EXAMPLE_ORE_MIN_HEIGHT.get(), (Integer) ExampleConfig.EXAMPLE_ORE_MAX_HEIGHT.get(), (Integer) ExampleConfig.EXAMPLE_ORE_AMOUNT.get()); } } private static void exampleOreGenerate(BiomeGenerationSettingsBuilder settings, RuleTest fillerType, BlockState state, int veinSize, int minHeight, int maxHeight, int amount) { settings.addFeature(Decoration.UNDERGROUND_ORES, (ConfiguredFeature)((ConfiguredFeature)((ConfiguredFeature) Feature.ORE.configured(new OreConfiguration(fillerType, state, veinSize)).rangeUniform(VerticalAnchor.absolute(minHeight), VerticalAnchor.absolute(maxHeight))).squared()).count(amount)); } }
  3. When on playing on server the falling damage doesnt dissapear with PlayerTickEvent event.player.fallDistance = 0; repo: https://github.com/Manueh333/WinxClub-Reborn/tree/main/src/main/java/com/manueh/winxclubreborn
  4. I tried to see the code of the model of Elytra and I get a way to create a custom model for the armor but I didnt know how to register anyone can help pls? repo: https://github.com/Manueh333/WinxClub-Reborn/tree/main/src/main/java/com/manueh/winxclubreborn Item: https://github.com/Manueh333/WinxClub-Reborn/blob/main/src/main/java/com/manueh/winxclubreborn/common/armor/WingsItem.java layer: https://github.com/Manueh333/WinxClub-Reborn/blob/main/src/main/java/com/manueh/winxclubreborn/common/armor/WingsLayer.java
  5. Is there any form of change the model of a custom armor?
  6. Add API mod to build gradle but it isn't appear when I open the game code: https://github.com/Manueh333/WinxClub-Reborn
  7. How to set the harvest level and the tool requiered for break a block
  8. Ok i solved the problem of the block entity i forgot to create a Screen for the container thank you
  9. Sorry I will use the .gitignore I update the forge to the last version yesterday
  10. [13:11:17] [Render thread/WARN]: Failed to create screen for menu type: winxclubreborn:magic_generator_container git repo: https://github.com/Manueh333/WinxClub-Reborn
  11. Ok i put zero durability and it works Thank you
  12. But when you create a Tier you need to set a durability
  13. How to make a Sword Item unbreakable?
  14. Ok so I have a ThrowItemProjectile and I make it onhitEntity to make damage. when i kill a player with this projectile it say death.attack.wolf_claw so I tried to put in languague files but the kill message was the word i put in languague I need to know how to make the message look like "Victim was killed by Shooter"
  15. package bowtruckle.mods.gods.data; import bowtruckle.mods.gods.tools.Settings; import bowtruckle.mods.gods.tools.Vector3; import net.minecraft.entity.Entity; import net.minecraft.entity.player.PlayerEntity; import net.minecraft.util.ResourceLocation; import net.minecraftforge.event.AttachCapabilitiesEvent; import net.minecraftforge.event.TickEvent; import net.minecraftforge.eventbus.api.SubscribeEvent; import bowtruckle.mods.gods.tools.Settings; @Mod.EventBusSubscriber(modid = Settings.MODID, bus = Mod.EventBusSubscriber.Bus.FORGE, value = Dist.CLIENT) public class PlayerInfoEventHandler { @SubscribeEvent public static void attachCapability(AttachCapabilitiesEvent<Entity> e) { if(e.getObject() instanceof PlayerEntity) { PlayerInfoProvider provider = new PlayerInfoProvider(); e.addCapability(new ResourceLocation(Settings.MODID,"lastPos"), provider); e.addListener(provider::invalidate); } } @SubscribeEvent public static void onPlayerMove(TickEvent.PlayerTickEvent e) { System.out.println("event called"); if(e.getPhase().equals(TickEvent.Phase.END)) { System.out.println("Event Phase End"); e.player.getCapability(CapabilityPlayerInfo.PLAYER_INFO_CAPABILITY).ifPresent(information -> { Vector3 pos = new Vector3(e.player.getPosX(), e.player.getPosY(), e.player.getPosZ()); if (pos == information.getLastPos()) { e.player.setInvisible(true); }else{ e.player.setInvisible(false); } System.out.println(information.getLastPos()); }); } } } Try using this code and remove the register of FMLCommonSetupEvent
  16. It works perfect, Thank You
  17. I have two errors on CubeListBuilder.create().addBox() code: https://github.com/Manueh333/WinxClub-Reborn/blob/main/src/main/java/com/manueh/winxclubreborn/common/models/HitOfNatureModel.java#L32-L33
  18. ok, and how i can model on java?
  19. I have a json model and I want to put the model on a ThrownItemProjectile
  20. Ok, ok, I get it working Thank You
  21. How i can create a ModelLayerLocation??

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.