Jump to content

Unpuzzledmind32

Members
  • Posts

    16
  • Joined

  • Last visited

Everything posted by Unpuzzledmind32

  1. How do i exactly change the time from day to night when an entity is spawned thanks
  2. you have a duplicate mod mod in there just remove it
  3. bro use pastebin for error log don't just paste a huge wall of text please thanks
  4. hi i am sorry for the late reply but it worked and i just wanted to say thanks.
  5. Hi i am making a food that would take long to eat and i am wondering how to make the food eating/animation longer
  6. ok then sorry for wasting your time
  7. the "two methods are both public and not static"
  8. i am sorry but i do not see it
  9. this is what my Feature class looks like do you mean two are private and almost all of them are static am i not seing somthing?
  10. and i do not see 2 i see like 50
  11. No i cannot figure out which one i need which one do i need?
  12. 1: yes 2: yes i have and i still have no idea what to do lol 😁
  13. well hand coding is where you don't make the code, like making it with a program like mcreator what method name do i need? i am sorry i am just very new to coding
  14. it says Cannot resolve method 'withConfiguration' in 'Feature' I tried everthing and i can not fix this error help @LexManos @diesieben07 i am new to forge hand coding btw code: package com.jerios.pearlarmor.world.gen; import net.minecraft.util.registry.Registry; import net.minecraft.util.registry.WorldGenRegistries; import net.minecraft.world.gen.feature.*; import net.minecraft.world.gen.placement.ConfiguredPlacement; import net.minecraft.world.gen.placement.Placement; import net.minecraft.world.gen.placement.TopSolidRangeConfig; import net.minecraftforge.event.world.BiomeLoadingEvent; import com.jerios.pearlarmor.world.gen.OreType; public class ModOreGen { public static void generateOres(final BiomeLoadingEvent event) { for (OreType ore : OreType.values()) { OreFeatureConfig oreFeatureConfig = new OreFeatureConfig( OreFeatureConfig.FillerBlockType.NATURAL_STONE, ore.getBlock().get().defaultBlockState(), ore.getMaxHeight()); ConfiguredPlacement<TopSolidRangeConfig> configuredPlacement = Placement.RANGE.configured( new TopSolidRangeConfig(ore.getMinHeight(), ore.getMinHeight(), ore.getMaxHeight())); } } private static ConfiguredFeature<?, ?> registerOreFeature(OreType ore, OreFeatureConfig oreFeatureConfig, ConfiguredPlacement configuredPlacement, BlockWithContextConfig blockWithContextConfig) { return Registry.register(WorldGenRegistries.CONFIGURED_FEATURE, ore.getBlock().get().getRegistryName(), Feature.ORE.withConfiguration(oreFeatureConfig).withPlacement(configuredPlacement) // line that is giving trouble fix soon .square().count(ore.getMaxVeinSize())); } }
  15. dude what was the solution I am Also having trouble with this
  16. so i am trying to add armor but i can't get it to do it what am i doing wrong my code: package com.jerios.pearlarmor.items; import java.util.function.Supplier; import net.minecraft.inventory.EquipmentSlotType; import net.minecraft.item.IArmorMaterial; import net.minecraft.item.Items; import net.minecraft.item.crafting.Ingredient; import net.minecraft.util.SoundEvent; import net.minecraft.util.SoundEvents; public enum ModArmorMaterial implements IArmorMaterial { ; GOLD("gold", 7, new int[]{1, 3, 5, 2}, 25, SoundEvents.ARMOR_EQUIP_GOLD, 0.0F, 0.0F, () -> { return Ingredient.of(Items.GOLD_INGOT); @Override public int getDurabilityForSlot(EquipmentSlotType p_200896_1_) { return 0; } @Override public int getDefenseForSlot(EquipmentSlotType p_200902_1_) { return 0; } @Override public int getEnchantmentValue() { return 0; } @Override public SoundEvent getEquipSound() { return null; } @Override public Ingredient getRepairIngredient() { return null; } @Override public String getName() { return null; } @Override public float getToughness() { return 0; } @Override public float getKnockbackResistance() { return 0; } }
×
×
  • Create New...

Important Information

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