Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Leaderboard

Popular Content

Showing content with the highest reputation since 11/07/21 in all areas

  1. Xironite Minecraft Server [1.8.x – 1.17.x] Xironite is a server dedicated to interacting with our community through hosting events and listening to player feedback! Our main feature is Towny! Towny gives our players a chance to work together and try to make the largest town while recruiting more players to help them. If competition is more your speed, you can compete against other towns in a variety of contests! You can do anything you want, from creating the largest town with your friends to dominating the economy and skill leaderboards! Xironite also adds a tonne of features to Survival, making it feel fresh once again. From custom enchants and tools to dungeons and bosses that will test your skills, Xironite has plenty to keep you busy! On top of all that, our player ranks can be earned in-game through playtime and resource gathering. No need to pay for cool perks! Xironite is constantly evolving based on player feedback and ideas from our amazing management. Join now before you miss our next event! How to Join? Join now using our IP: mc.xironite.org Features Bosses Dungeons Crates & Lootbags Events Robust Anti-Cheat Friendly & Active Community Custom Enchants Custom Tools & Armour PyroMining & PyroFishing Player Feedback & Suggestions Custom Textures ...and much more! Social Media Discord Instagram TikTok YouTube
    11 points
  2. Looks like you'll have to hack into the FLOWER_FLOWER_FOREST feature and add your flower in there. I don't think there is a hook. Make your own filled pot block using the non-deprecated FlowerPotBlock constructor. Tada, you are done.
    1 point
  3. Also note after updating you need to regenerate the gradle dependencies
    1 point
  4. Correct. You can use a chunk capability for this so that your data loads and unloads with the chunk.
    1 point
  5. the Event fires for all Blocks, not only for your's
    1 point
  6. check if the Entity of the DamageSource is an instance of PlayerEntity
    1 point
  7. NeighborNotifyEvent should do what you want.
    1 point
  8. IIntArray -> ContainerData IntArray -> SimpleContainerData IntReferenceHolder -> DataSlot
    1 point
  9. Check whether the LivingEntity you get is not null and if the ItemStack being rendered is == to LivingEntity#getMainHandItem.
    1 point
  10. Verify that your event handler is called using the debugger. Once you have figured that out, we can proceed.
    1 point
  11. Had the same issue, it was caused by epicfight mod. Updating or removing it fixed it for me.
    1 point
  12. did you read the doc? since you forgot the @Mod.EventBusSubscriber annotation
    1 point
  13. for simple testing if a method is called is System.out enough, the Logger first gives information about the time and the thread, which is sometimes useful for debugging and second if you want to check some parameters the Logger is the better option than System.out, since you can do things like that: public void foo(int x, int, y, int z) { LogManager.getLogger().log("Do foo at X:{}, Y:{}, Z:{}", x, y, z); //some code } i also would recommend you to use the Logger instead of System.out, simply to match with vanilla
    1 point
  14. serialize will save data of for example a Capability into a Tag and deserialize will read the data from the Tag into the Capability Basically you can say serialize save things (to disk) and deserialize read things (from disk)
    1 point
  15. You must specify your ModID to the @EventBusSubscriber annotation. RegistryEvent.Register is a mod bus event, @EventBusSubscriber uses the forge bus by default.
    1 point
  16. register requires a supplier for the registry type (in your case Effect). You are giving it a constructor reference that does not match up with the functional interface Supplier. If you don't know what constructor/method references, lambdas and functional interfaces are - look them up. Or don't use them, you can implement the interface normally, too.
    1 point
  17. you need to register a RenderType for your Block, call ItemBlockRenderTypes#setRenderLayer in FMLClientSetupEvent and use cutout as RenderType
    1 point
  18. only the folder, since a mod creates a config file in this folder but they forgot to create the folder itself that's why you get the error
    1 point
  19. im not fully sure i thought it was a resource pack kind of deal like if you go into the minecraft folder find the pic that has them in it and erased them in paint then they wouldnt be there ps also if you could tell me what (1.7 is no longer supported on this forum. Please update to a modern version of Minecraft to receive support.) Means i would like to know cause i need help with updating a 1.7.10 mod to 1.12.2
    1 point
  20. Create this folder: /Users/america/Library/Application Support/minecraft/config/skds_core/
    1 point
  21. Nope, 1.16 is going to stay as LTS and 1.17 is getting a 1 month grace period.
    1 point
  22. you can look at this scrip by gigaherz, you can also use the forge bot on discord, but it's recommended to use it only when you need 2-5 mappins and not a complete project command: !mcp -c moj <name>
    1 point
  23. Your issue is coming from Modern UI
    1 point
  24. No, for two reasons: 1) x1 and x2 are not equal and have no apparent relationship 2) matrix transformations are non-associative The only thing I can think of is working backwards from the output of the first chunk, removing the rotation, removing the scale, then adding the new rotation and scale back.
    1 point
  25. the tutorial is outdated, since forge use Mojang mappings for classes and packages. Use your IDE to screach for the class. The Item is now in net.minecraft.world.item.Item
    1 point
  26. Problem with random patches, or "Game Menu Mod Options". I would strongly advise not using the latter, they are needlessly coremodding the game.
    1 point
  27. Looks right. Except that vanilla registries are not threadsafe, therefor the code in FMLCommonSetupEvent most use enqueueWork.
    1 point
  28. Now you are using the forge event bus, but RegistryEvent.Register and FMLCommonSetupEvent fire on the mod event bus. You need separate event handlers for both. Your onBiomeLoading method is also still not static, meaning @EventBusSubscriber will not register it.
    1 point
  29. Specify your ModID when using @EventBusSubscriber. BiomeLoadingEvent is fired on the forge event bus, not the mod event bus.
    1 point
  30. Make a custom ingredient or a custom brewing recipe.
    1 point
  31. 1 point
  32. then you need to calculate it manually from the current and the last Entity Position
    1 point
  33. you can get the Entity speed by LivingEntity#getSpeed, you also can look at LivingEntity#getFrictionInfluencedSpeed
    1 point
  34. Conflict between Optifine and Immersive Portals it seems. Make sure you install compatible versions.
    1 point
  35. EntityRenderersEvent.AddLayers fires on the mod event bus (it inherits from IModBusEvent to indicate this). You registered your event handler to the forge bus.,
    1 point
  36. why on earth did you use EntityType#loadEntityRecursive, you should simply use new ChickenEntity()
    1 point
  37. Okay, I've manually fixed it by finding those JAR files that fail to download in log (see previous post where I found them)... I then put those files into the folder the installer extracts them to. C:\Users\<YOUR USER>\AppData\Roaming\.minecraft\libraries\net\minecraftforge \accesstransformers\2.1.3-shadowed\accesstransformers-2.1.3-shadowed.jar \eventbus\2.2.1-service\eventbus-2.2.1-service.jar Done... fixed...
    1 point
  38. quote by diesieben07: "Optifine is not at all compatible with Forge on 1.17 yet." so don't use Optifine -> you can use the vanilla Spyglass😅
    1 point
  39. New version: public void LookingAt(PlayerEntity player, boolean isFluid){ ArrayList<String> list = new ArrayList<String>(); RayTraceResult block = player.pick(20.0D, 0.0F, isFluid); if(block.getType() == RayTraceResult.Type.BLOCK) { BlockPos blockpos = ((BlockRayTraceResult)block).getBlockPos(); BlockState blockstate = player.level.getBlockState(blockpos); LOGGER.info("Looking at: "+blockstate.getBlock()+"\nIs Fluid: "+isFluid+"\nPosition= "+ blockpos.getX() + ", " + blockpos.getY() + ", " + blockpos.getZ()); } }
    1 point
  40. Found a better solution ArrayList<String> list = new ArrayList<String>(); Minecraft minecraft = Minecraft.getInstance(); ClientPlayerEntity player= minecraft.player; ClientWorld level = minecraft.level; RayTraceResult block = player.pick(20.0D, 0.0F, false); RayTraceResult fluid = player.pick(20.0D, 0.0F, true); \\BLOCK if(block.getType() == RayTraceResult.Type.BLOCK) { BlockPos blockpos = ((BlockRayTraceResult)block).getBlockPos(); BlockState blockstate = level.getBlockState(blockpos); LOGGER.info("Looking at: "+blockstate.getBlock()+"\nPosition= "+ blockpos.getX() + ", " + blockpos.getY() + ", " + blockpos.getZ()); } \\FLUID if(fluid.getType() == RayTraceResult.Type.BLOCK) { BlockPos blockpos = ((BlockRayTraceResult)fluid).getBlockPos(); BlockState blockstate = level.getBlockState(blockpos); LOGGER.info("Looking at: "+blockstate.getBlock()+"\nPosition= "+ blockpos.getX() + ", " + blockpos.getY() + ", " + blockpos.getZ()); } What do the first two variables do? player.pick(20.0D, 0.0F, false);
    1 point
  41. 1 point
  42. You both either forgot to replace version="${file.jarVersion}" with version="${version}"(or your own property name) or delete ${file.jarVersion} from comment.
    1 point
  43. Thank you very much! With your Information I could get it to work ? For anybody interested, this is my code now. Mod class: import net.minecraftforge.fml.common.Mod; import net.minecraftforge.fml.event.lifecycle.FMLClientSetupEvent; import net.minecraft.nbt.CompoundNBT; import net.minecraft.world.server.ServerWorld; import net.minecraftforge.common.MinecraftForge; import net.minecraftforge.event.world.WorldEvent; import net.minecraftforge.fml.javafmlmod.FMLJavaModLoadingContext; import org.apache.logging.log4j.LogManager; import org.apache.logging.log4j.Logger; // The value here should match an entry in the META-INF/mods.toml file @Mod(ModQuestion.MODID) public class ModQuestion { public static final String MODID = "questionmod"; private static final Logger LOGGER = LogManager.getLogger(); public ModQuestion() { FMLJavaModLoadingContext.get().getModEventBus().addListener(this::onClientSetupEvent); MinecraftForge.EVENT_BUS.addListener(this::onWorldLoaded); MinecraftForge.EVENT_BUS.addListener(this::onWorldSaved); } private void onClientSetupEvent(final FMLClientSetupEvent event) { //LOGGER.debug("Hello from the Client Setup!"); } public void onWorldLoaded(WorldEvent.Load event) { if (!event.getWorld().isRemote() && event.getWorld() instanceof ServerWorld) { MySavedData saver = MySavedData.forWorld((ServerWorld) event.getWorld()); if(saver.data.contains("MyData")) { LOGGER.debug("Found my data: " + saver.data.get("MyData")); //Do whatever you want to do with the data } } } public void onWorldSaved(WorldEvent.Save event) { if (!event.getWorld().isRemote() && event.getWorld() instanceof ServerWorld) { MySavedData saver = MySavedData.forWorld((ServerWorld) event.getWorld()); CompoundNBT myData = new CompoundNBT(); myData.putInt("MyData", 0); //Put in whatever you want with myData.put saver.data = myData; saver.markDirty(); LOGGER.debug("Put my data in!"); } } } WorldSaverData class: import java.util.function.Supplier; import net.minecraft.nbt.CompoundNBT; import net.minecraft.world.server.ServerWorld; import net.minecraft.world.storage.DimensionSavedDataManager; import net.minecraft.world.storage.WorldSavedData; public class MySavedData extends WorldSavedData implements Supplier { public CompoundNBT data = new CompoundNBT(); public MySavedData() { super(ModQuestion.MODID); } public MySavedData(String name) { super(name); } @Override public void read(CompoundNBT nbt) { data = nbt.getCompound("MyCompound"); } @Override public CompoundNBT write(CompoundNBT nbt) { nbt.put("MyCompound", data); return nbt; } public static MySavedData forWorld(ServerWorld world) { DimensionSavedDataManager storage = world.getSavedData(); Supplier<MySavedData> sup = new MySavedData(); MySavedData saver = (MySavedData) storage.getOrCreate(sup, ModQuestion.MODID); if (saver == null) { saver = new MySavedData(); storage.set(saver); } return saver; } @Override public Object get() { return this; } }
    1 point
  44. This is exacly why I don't like vanilla. Me: "Hey guys, how about making it possible to speed up/down game?" Mojang: "Nah, we don't plan on doing it, we'll just HARDCODE shit out of MC!" Me: "But guys? Maybe getter?" Mojang: "HARD. CODE." Me: Problem is that this hardcode is actually in few places. I don't plan on Looking into Void (ASM) - it looks back! Example: if (args[1].equals("day")) { i = 1000; } else if (args[1].equals("night")) { i = 13000; } Because it would be so hard to make "day" be scallable value. Ok, so how do I replace WorldProvider of surface? EDIT I am not dumb, just waiting for maybe better ideas than I see right now: public final WorldProvider provider; I would just reflect shit out of this thing! Safe?
    1 point
×
×
  • Create New...

Important Information

By using this site, you agree to our Privacy Policy.