Skip to content

Instantly share code, notes, and snippets.

Communicating between the clients and the server

Experiment

Say you wanted to emit an explosion particle whenever your block is destroyed. Emitting particles requires access to the ParticleManager, which only exists on the MinecraftClient instance. Let's try doing that:

public class MyBlock extends Block {
    @Override
    public void onBlockRemoved(BlockState before, World world, BlockPos pos, BlockState after, boolean bool) {
@TrueCP6
TrueCP6 / forge-to-fabric-ports.md
Last active January 29, 2024 16:09
A list of decently sized Forge mods ported or being ported to Fabric
@myoun
myoun / Minecraft Optimization Mods.md
Last active March 2, 2024 08:34
마인크래프트 최적화 모드 리스트

마인크래프트 최적화 모드 리스트

이 Gist에서는 마인크래프트 성능을 향상시켜줄 모드들을 소개하고 있습니다.
버전별로 나눠져 있으니, 원하는 버전으로 가셔서 필요하신 모드를 다운받으시면 됩니다.

참고로, 버전은 최신버전부터 오래된 버전 순입니다.

많은 버전을 지원하고, 포지와 페브릭에서 둘다 사용가능하며, 독립적으로도 사용 가능한 옵티파인은 따로 링크를 두겠습니다.

@arnokeesman
arnokeesman / How to use LuckPerms prefixes on a fabricmc server.md
Last active July 12, 2024 22:52
How to use LuckPerms prefixes on a fabricmc server