This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import processing.core.PApplet; | |
import processing.event.MouseEvent; | |
import processing.serial.Serial; | |
/** | |
* @author LatvianModder | |
*/ | |
public class LedStrip extends PApplet | |
{ | |
public static void main(String[] args) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.latmod.mods.wallcables.block; | |
import net.minecraft.block.Block; | |
import net.minecraft.block.material.MapColor; | |
import net.minecraft.block.material.Material; | |
import net.minecraft.block.properties.PropertyEnum; | |
import net.minecraft.block.properties.PropertyInteger; | |
import net.minecraft.block.state.BlockStateContainer; | |
import net.minecraft.block.state.IBlockState; | |
import net.minecraft.entity.EntityLivingBase; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"parent": "block/block", | |
"credit": "Made with Blockbench", | |
"textures": { | |
"0": "minecraft:blocks/iron_block", | |
"particle": "minecraft:blocks/iron_block" | |
}, | |
"elements": [ | |
{ | |
"from": [4, 0, 4], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is not actually executable code. | |
// This just shows that there are different ways to write things, | |
// you chose whichever looks best/fits better your needs. | |
// Note: 'data' is only available in 1.12.2 and represents item metadata or damage | |
// Items | |
// If string is used, it parses it as /give would. | |
'minecraft:stone_sword' // Stone Sword | |
'minecraft:stone_sword 1 10' // Stone Sword with damage 10 | |
'minecraft:apple 30' // 30 Apples |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.latvian.kubejs.documentation; | |
import io.netty.bootstrap.ServerBootstrap; | |
import io.netty.buffer.Unpooled; | |
import io.netty.channel.ChannelFuture; | |
import io.netty.channel.ChannelHandlerContext; | |
import io.netty.channel.ChannelInboundHandlerAdapter; | |
import io.netty.channel.ChannelInitializer; | |
import io.netty.channel.ChannelOption; | |
import io.netty.channel.EventLoopGroup; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public void register(CommandDispatcher<CommandSource> dispatcher) | |
{ | |
LiteralCommandNode<CommandSource> command = dispatcher.register(Commands.literal("ftbteams") | |
.then(Commands.literal("create") | |
.then(Commands.argument("name", StringArgumentType.greedyString()) | |
.executes(ctx -> create(ctx.getSource(), string(ctx, "name"))) | |
) | |
.executes(ctx -> create(ctx.getSource(), "")) | |
) | |
.then(Commands.literal("create_server_team") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// kubejs/data/modpack/kubejs/example.js | |
// This is just an example script to show off multiple types of recipes and removal methods | |
// Supports /reload | |
// Enable recipe logging, off by default | |
server.logAddedRecipes = true | |
server.logRemovedRecipes = true | |
// Listen to server recipe event | |
events.listen('recipes', function (event) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This script replaces beacon recipe with new one | |
// Listen to Crafing Table recipe event | |
events.listen('recipes.crafting_table', function (event) { | |
// Remove Beacon recipe | |
event.removeID('minecraft:beacon') | |
// Add new Beacon recipe. new_beacon is the ID of recipe, minecraft:beacon is the item | |
event.addShaped('new_beacon', 'minecraft:beacon', ['CGC', 'GSG', 'CGC'], { | |
G: 'ore:blockGlass', // And blockGlass | |
S: 'ore:netherStar', // Any netherStar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Node | Type | Player default | OP default | Variants | |
| | | | | |
command | bool | false | true | [true, false] | |
default_op_rank | bool | false | false | [true, false] | |
default_player_rank |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
As a contributor to MCMC projects, you grant MCMC the following: | |
Copyright ownership of your contributions to MCMC project codebases to MCMC, where it will be licensed under the LGPLv2.1 license. | |
This is intended as a legally binding copyright assignment to MCMC for all contributions to all MCMC projects. |