Skip to content

Instantly share code, notes, and snippets.

View RobertSkalko's full-sized avatar

Robert Skalko RobertSkalko

  • Montenegro
View GitHub Profile
@RobertSkalko
RobertSkalko / Updating-to-java16-guide.md
Last active June 11, 2021 17:07
[Guide] Updating to Java 16 for 1.17 minecraft mods

I had some issues installing new java so here's a small guide!

  1. Go to this link and install the java 16 you want: https://adoptopenjdk.net/

They have a nice installation executable that auto sets your java home and other stuff.

  1. Copy what fabric example project did here: https://github.com/FabricMC/fabric-example-mod/commit/50f0be767c69f3ac49c3a2c4c8669354a39fd9b3

Remember to copy what the commit did for: build.gradle, fabric.mod.json, mixins.json, gradle-wrapper properties file, but update the gradle.properties with new versions from here: https://fabricmc.net/versions.html

package com.robertx22.mmorpg.registers.common;
import com.robertx22.db_lists.WorldProviders;
import com.robertx22.mmorpg.Ref;
import com.robertx22.world_gen.features.RandomSurfaceDecoration;
import com.robertx22.world_gen.features.RandomSurfaceEggFeature;
import com.robertx22.world_gen.features.RandomSurfaceTreasure;
import com.robertx22.world_gen.structures.TowerStructure;
import net.minecraft.util.registry.Registry;
import net.minecraft.world.biome.Biome;
$(document).ready(function() {
var player = {
level: 1,
gold: 0,
experience: 0,
summons: 30,
@RobertSkalko
RobertSkalko / game-proto-real.markdown
Last active August 26, 2016 20:10
Game proto REAL
@RobertSkalko
RobertSkalko / index.html
Created August 16, 2016 15:47
Item generator prototype
<div id="main">
<h4 style="color:white"class="m text-center">Random Item Generator!</h4>
<div class="inventory">
<p class="rarity text-center">Item</p>
<p style="text-align:center"><img class="pic center" src="http://res.cloudinary.com/treborx555/image/upload/v1471340423/rod_dkey85.png"></p>
<p class="text-center"> <button id="gen" type="button" class="btn btn-md btn-success">Generate!</button></p>
<p class="text-center"> <button id="save" type="button" class="btn btn-md btn-warning">Save Item!</button></p>
function checkCashRegister(price, cash, cid) {
var change=(cash-price).toFixed(2);
// 0:available, 1:money type, 2:name, 3:chang given
var money=[
[cid[0][1] ,0.01,'PENNY',0],
[cid[1][1] ,0.05,"NICKEL",0],
[cid[2][1] ,0.10,'DIME',0],
[cid[3][1] ,0.25,'QUARTER',0],
[cid[4][1],1,"ONE",0],
function binaryAgent(str) {
var firstslice = [];
var lastslice = [];
var indexof1 = [];
var lastnumber = [];
var splitstr = str.split(" ");
var finalstr = [];
var binary = [1,10,11,100,101,110,111,1000,1001,1010,1011,1100,1101,1110,1111,