Skip to content

Instantly share code, notes, and snippets.

View JibayMcs's full-sized avatar
🏠
Working from home

Jibay Mcs JibayMcs

🏠
Working from home
View GitHub Profile
/* Copyright 2014 Google Inc. All Rights Reserved. */
@import url(//fonts.googleapis.com/css?family=Open+Sans:300,400);
@-webkit-keyframes spin {
0% {
-webkit-transform:rotate(0deg)
}
100% {
-webkit-transform:rotate(360deg)
}
}
@JibayMcs
JibayMcs / TourDashboard.json
Created September 6, 2023 09:57
Just a test for the Filament Tour plugin
{
"id": "dashboard",
"route": "",
"colors": [
"",
""
],
"alwaysShow": true,
"visible": true,
"uncloseable": true,
@JibayMcs
JibayMcs / CreateWorldScreenMixin.java
Created March 9, 2023 19:20
Load datapacks in a custom folder
package com.leviathanstudio.nuwa.mixin;
import api.contentpack.ContentPack;
import api.contentpack.resources.ContentPackResourcesFinder;
import com.leviathanstudio.nuwa.NuwaMod;
import com.mojang.datafixers.util.Pair;
import net.minecraft.client.gui.screen.world.CreateWorldScreen;
import net.minecraft.resource.ResourcePackManager;
import net.minecraft.resource.ResourcePackSource;
import net.minecraft.resource.ResourceType;
@JibayMcs
JibayMcs / MakeTemplateBasedView.php
Last active January 24, 2022 16:52
Create a view based on template with php artisan
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
class MakeTemplateBasedView extends Command
{
/**
* The name and signature of the console command.
item.riveciel.lock.name=Lock
item.riveciel.key.name=Key
item.riveciel.golden_coin.name=Cuore
item.riveciel.silver_coin.name=Denier
item.riveciel.copper_coin.name=Obole
item.riveciel.purse.name=Purse
item.riveciel.fried_eggs.name=Fried Eggs
item.riveciel.raw_bacon.name=Raw Bacon
import net.minecraft.client.gui.screen.Screen;
import net.minecraft.client.gui.widget.TextFieldWidget;
import net.minecraft.util.text.StringTextComponent;
/**
* @author ZeAmateis
*/
public class ExampleTextfieldScreen extends Screen {
public class ExampleTextfieldScreen extends Screen {
private TextFieldWidget mySupaTextfield;
public ExampleTextfieldScreen() {
super(new StringTextComponent(""));
}
@Override
protected void init() {
import com.google.common.collect.ImmutableSet;
import fr.zeamateis.lycanthropy.LycanthropyMod;
import fr.zeamateis.lycanthropy.api.villagers.trades.RandomTradeBuilder;
import net.minecraft.block.Blocks;
import net.minecraft.entity.merchant.villager.VillagerProfession;
import net.minecraft.util.ResourceLocation;
import net.minecraft.village.PointOfInterestType;
import net.minecraftforge.event.RegistryEvent;
import net.minecraftforge.event.village.VillagerTradesEvent;
---- Minecraft Crash Report ----
// I bet Cylons wouldn't have this problem.
Time: 06/03/20 12:59
Description: Ticking entity
java.lang.NullPointerException: Ticking entity
at net.minecraft.village.PointOfInterestData.func_218245_a(SourceFile:124) ~[?:?] {re:classloading}
at net.minecraft.village.PointOfInterestManager.func_219133_a(SourceFile:130) ~[?:?] {re:classloading}
at java.util.Optional.map(Optional.java:215) ~[?:1.8.0_151] {}
[14:40:05] [Client thread/INFO] [STDERR/]: [net.voxelindustry.brokkgui.style.StylesheetManager:refreshStylesheets:71]: java.util.concurrent.ExecutionException: java.io.FileNotFoundException: Cannot load stylesheet /assets/nuwa/screen/css/demo.css
[14:40:05] [Client thread/INFO] [STDERR/]: [net.voxelindustry.brokkgui.style.StylesheetManager:refreshStylesheets:71]: at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:502)
[14:40:05] [Client thread/INFO] [STDERR/]: [net.voxelindustry.brokkgui.style.StylesheetManager:refreshStylesheets:71]: at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:461)
[14:40:05] [Client thread/INFO] [STDERR/]: [net.voxelindustry.brokkgui.style.StylesheetManager:refreshStylesheets:71]: at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:78)
[14:40:05] [Client thread/INFO] [STDERR/]: [net.voxelindustry.brokkgui.style.StylesheetManager:refreshStylesheets:71]: at com.google.common.util.concur