Skip to content

Instantly share code, notes, and snippets.

View Ensamisten's full-sized avatar

Ensamisten Ensamisten

  • 11:51 (UTC +02:00)
View GitHub Profile

01: Cryptris

📝 A scientific mediation video Game mimicking Tetris, on the foundation and usage of asymmetric cryptography

Mirrors Languages
Cryptris English
Chiffrer French

Keybase proof

I hereby claim:

  • I am ensamisten on github.
  • I am ensamisten (https://keybase.io/ensamisten) on keybase.
  • I have a public key ASDnCPZZuvPraDfz23ZwOPK3f0PFKeE8Fk02WhSxYMW4VAo

To claim this, I am signing this object:

01: One Way: The Elevator

📝 One Way: The Elevator is a creative point-and-click game developed by CottonGame.
You need to find a blue sphere in each scene to power an elevator to travel upward.

Mirrors Platform
Google Play Android
App Store iOS
Steam Store Windows & Mac
@Ensamisten
Ensamisten / PlayerIsTyping.java
Created July 18, 2023 19:12
A Mixin in Java for Fabric (Minecraft 1.20.1) which prints "Player is typing..." each time a letter is written manually in the chat box.
@Mixin(TextFieldWidget.class)
public abstract class PlayerIsTyping {
@Unique
public abstract String charTyped(char chr, int modifiers);
@Inject(at = @At("RETURN"), method = "charTyped")
public void type(char chr, int modifiers, CallbackInfoReturnable<Boolean> cir) {
if (cir.getReturnValue()) {
assert MinecraftClient.getInstance().player != null;
@Ensamisten
Ensamisten / ModIdeas.md
Last active October 10, 2023 11:05
Modding ideas in a gist for Minecraft

Mod Ideas

Firework Mod

Summon fireworks into Minecraft and display images using them.

Holiness Mod

Gain the new skill holiness in Minecaft.

Recipe Mod

Climb the hiearchy of recipes through crafting.

@Ensamisten
Ensamisten / FireworkCommand.java
Last active February 22, 2024 03:38
FireworkCommand. (Tested for Forge in Minecraft: 1,18, 1.18.1, 1.18.2, 1.19.1, 1.19.2, 1.19.3, 1.19.4, 1.20, 1.20.1, 1.20.2, 1.20.2, 1.21). The mixin allows for firework to pass through blocks, although it does not allow for all fireworks issued by the firework command.
package io.github.ensamisten.fireworkmod;
import com.mojang.brigadier.Command;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.IntegerArgumentType;
import com.mojang.brigadier.context.CommandContext;
import io.github.ensamisten.forgient.mixin.FireworkRocketEntityMixin;
import net.minecraft.commands.CommandSourceStack;
import net.minecraft.commands.Commands;
import net.minecraft.commands.arguments.EntityArgument;
@Ensamisten
Ensamisten / FMLCommand.java
Created March 5, 2026 10:39
Command for FML.
package io.github.ensamisten.command.brigadier;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.StringArgumentType;
import com.mojang.brigadier.context.CommandContext;
import com.mojang.brigadier.suggestion.Suggestions;
import com.mojang.brigadier.suggestion.SuggestionsBuilder;
import net.fabricmc.fabric.api.client.command.v2.ClientCommandManager;
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource;
import net.minecraft.text.Text;
package io.github.ensamisten.command;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.context.CommandContext;
import net.minecraft.client.MinecraftClient;
import net.minecraft.client.util.Clipboard;
import net.minecraft.client.util.Window;
import net.minecraft.component.DataComponentTypes;
import net.minecraft.component.type.NbtComponent;
import net.minecraft.component.type.WritableBookContentComponent;
package io.github.ensamisten.client.command.brigadier;
import com.mojang.brigadier.CommandDispatcher;
import com.mojang.brigadier.arguments.IntegerArgumentType;
import net.fabricmc.fabric.api.client.command.v2.ClientCommandManager;
import net.fabricmc.fabric.api.client.command.v2.FabricClientCommandSource;
import net.minecraft.client.MinecraftClient;
import net.minecraft.particle.DustParticleEffect;
import net.minecraft.sound.SoundEvents;
import net.minecraft.text.Text;