Skip to content

Instantly share code, notes, and snippets.

View axelrindle's full-sized avatar
🌴
https://open.spotify.com/track/2cs6ASglDOWlPnlWbfaBZf?si=a9cae2ea41274325

Axel Rindle axelrindle

🌴
https://open.spotify.com/track/2cs6ASglDOWlPnlWbfaBZf?si=a9cae2ea41274325
View GitHub Profile

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) {
@ruanbekker
ruanbekker / dnsmasq.conf
Last active April 3, 2025 17:58
Tinkering with Loki, Promtail, Grafana, Prometheus, Nginx and Dnsmasq
log-queries
log-facility=/var/log/dnsmasq.log
no-resolv
server=8.8.4.4
server=8.8.8.8
address=/router/10.1.1.1
address=/server/10.1.1.2
@comp500
comp500 / fabricserversidemods.md
Last active February 8, 2026 11:27
Useful Fabric server side mods