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
extends RigidBody3D | |
@export var speed:float = 10.0 | |
@export var jump_force = 5.0 | |
@onready var camera:Camera3D = $Camera3D | |
@onready var ground_sensor:RayCast3D = $GroundSensor | |
func _ready(): | |
pass |
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
tool | |
extends GridMap | |
#based on https://gamedevelopment.tutsplus.com/tutorials/how-to-use-tile-bitmasking-to-auto-tile-your-level-layouts--cms-25673 tutorial | |
# and using a 47 tile meshlibrary like this one : https://imgur.com/yuprM0n | |
var tilebitmask = { "254": 45, "90": 22, "22": 7, "0": 47, "10": 3, "2": 1, "94": 24, "120": 29, "11": 4, "208": 34, "107": 28, "82": 19, "216": 37, "86": 20, "223": 41, "214": 36, "104": 26, "222": 40, "74": 16, "18": 6, "8": 2, "248": 42, "255": 46, "127": 33, "123": 31, "66": 14, "16": 5, "219": 39, "75": 17, "80": 18, "122": 30, "30": 11, "126": 32, "31": 12, "250": 43, "88": 21, "64": 13, "95": 25, "251": 44, "91": 23, "24": 8, "27": 10, "218": 38, "72": 15, "106": 27, "26": 9, "210": 35 } | |
var bitmask = [ | |
[1,2,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
use gdnative::*; | |
use gdnative::Node; | |
use NativeClass; | |
/// The HelloWorld "class" | |
#[derive(NativeClass)] | |
#[inherit(Node)] | |
pub struct Test; | |
// __One__ `impl` block can have the `#[methods]` attribute, which will generate |
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
[11:09:53] [Server-Worker-3/INFO]: Preparing spawn area: 0% | |
[11:09:54] [Server-Worker-3/INFO]: Preparing spawn area: 0% | |
[11:09:54] [Server-Worker-3/INFO]: Preparing spawn area: 0% | |
[11:09:55] [Server-Worker-1/INFO]: Preparing spawn area: 0% | |
[11:09:55] [Server-Worker-2/INFO]: Preparing spawn area: 1% | |
[11:09:56] [Server-Worker-2/INFO]: Preparing spawn area: 1% | |
[11:09:56] [Server-Worker-1/INFO]: Preparing spawn area: 2% | |
[11:09:57] [Server-Worker-3/INFO]: Preparing spawn area: 2% | |
[11:09:57] [Server-Worker-3/INFO]: Preparing spawn area: 3% | |
[11:09:58] [Server-Worker-3/INFO]: Preparing spawn area: 3% |
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
Function api registration command reference: | |
blockplacement all all all <name> <value> | |
blockplacement all all left <name> <value> | |
blockplacement all all lower <name> <value> | |
blockplacement all all right <name> <value> | |
blockplacement all all upper <name> <value> | |
blockplacement all down all <name> <value> | |
blockplacement all down left <name> <value> | |
blockplacement all down lower <name> <value> | |
blockplacement all down right <name> <value> |
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 java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
import java.util.Objects; |
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
[20:25:31] [main/INFO]: Loading for game Minecraft 1.14.4 | |
[20:25:31] [main/INFO]: Fabric is preparing JARs on first launch, this may take a few seconds... | |
[20:25:41] [main/WARN]: Warnings were found! | |
- Conflicting versions found for fabric-resource-loader-v0: used 0.1.3+591e97ae42, also found 0.1.3+b02deb0042 | |
[20:25:41] [main/INFO]: [FabricLoader] Loading 35 mods: [email protected], [email protected]+591e97ae42, [email protected]+c877038942, [email protected]+591e97ae42, [email protected]+build.126, [email protected]+build.173, [email protected]+591e97ae42, [email protected]+591e97ae42, [email protected]+369ab22e42, [email protected]+591e97ae42, [email protected]+591e97ae42, [email protected]+591e97ae42, [email protected]+2ac73e7242, [email protected], [email protected]+591e97ae42, [email protected]+c877038942, fabric-resource-loader- |
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 com.mojang.brigadier.CommandDispatcher; | |
import com.mojang.brigadier.arguments.IntegerArgumentType; | |
import com.mojang.brigadier.context.CommandContext; | |
import net.minecraft.command.arguments.*; | |
import net.minecraft.server.command.CommandManager; | |
import net.minecraft.server.command.ServerCommandSource; | |
import net.minecraft.text.LiteralText; | |
public class InventoryCommand { |
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
---- Minecraft Crash Report ---- | |
// Quite honestly, I wouldn't worry myself about that. | |
Time: 9/22/19 9:55 AM | |
Description: Loading entity NBT | |
java.lang.AbstractMethodError: net.minecraft.server.network.ServerPlayerEntity.getServer()Lnet/minecraft/server/MinecraftServer; | |
at net.minecraft.server.network.ServerPlayerEntity.readCustomDataFromTag(ServerPlayerEntity.java:228) | |
at net.minecraft.entity.Entity.fromTag(Entity.java:1583) | |
at net.minecraft.server.PlayerManager.loadPlayerData(PlayerManager.java:296) |
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
/** | |
* Allows for any block to be farmland, if it's tagged correctly. | |
*/ | |
@Mixin(CropBlock.class) | |
public abstract class CropBlockMixin { | |
@Inject(method = "Lnet/minecraft/block/CropBlock;canPlantOnTop(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z", | |
at = @At("HEAD")) |
NewerOlder