BEG | INT | ADV | EXP | MAS | |
---|---|---|---|---|---|
Carpentry | |||||
Cooking | |||||
Farming | |||||
First Aid | |||||
Electrical |
This file contains hidden or 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
#!/bin/bash | |
if [[ $@ == "-h" ]] || [[ $@ == "--help" ]]; then | |
echo "usage: ./pack-instance.sh [output]" | |
echo "Creates a Prism Launcher compatible instance .zip file from your pack.toml." | |
echo "If 'include' directory exists, its contents are copied to the minecraft folder." | |
echo "If 'icon.png' exists, it's added to the pack and its instance config." | |
echo "Output defaults to '<name>_v<version>.zip' in the current directory." | |
exit 0 | |
fi |
This file contains hidden or 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 readonly unsafe struct Query : IEnumerable<Iterator> | |
{ | |
private readonly World _world = null!; | |
private readonly ecs_query_t* _handle = null; | |
public Query(World world, string expr) | |
{ | |
ecs_query_desc_t desc = default; | |
desc.filter.expr = expr; | |
_world = world; |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
using System.Runtime.InteropServices; | |
namespace gaemstone.Utility | |
{ | |
public delegate ref TResult ValueSelector<TValue, TResult>(ref TValue value); | |
public delegate bool ValueFilter<TValue>(ref TValue value); |
This file contains hidden or 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 num_traits::PrimInt; | |
use std::{ | |
mem::size_of, | |
ops::{Shl, Shr}, | |
}; | |
#[derive(Copy, Clone, Eq, PartialEq, Ord, PartialOrd)] | |
pub struct ZOrderIndex<T: PrimInt>(T); | |
impl<T: PrimInt> ZOrderIndex<T> { |
This file contains hidden or 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
using System; | |
using System.Collections.Generic; | |
using gaemstone.Common.Utility; | |
namespace gaemstone.Common.Collections | |
{ | |
public class RefDictionary<TKey, TValue> | |
where TKey : struct | |
{ | |
public struct Entry |
This file contains hidden or 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
using System; | |
using System.Text; | |
using Vintagestory.API.MathTools; | |
namespace Vintagestory.Essentials | |
{ | |
[Flags] | |
public enum ProperNeighbor : byte | |
{ | |
None = 0, |
This file contains hidden or 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 crafttweaker.item.IIngredient; | |
import crafttweaker.item.IItemStack; | |
import mods.dropt.Dropt; | |
// The chance (1/X) for a gravel pile to drop from | |
// breaking a dirt block instead of a dirt pile. | |
// Allows harvesting flint in gravel-sparse places. | |
static DIRT_GRAVEL_WEIGHT as int = 6; |
This file contains hidden or 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
local component = require("component"); | |
local sides = require("sides"); | |
package.loaded["./resources"] = nil | |
local resources = require("./resources"); | |
function pretty_amount(n) | |
if n < 1000 then return string.format("%.0f", n) | |
elseif n < 1000000 then return string.format("%.1fK", n / 1000) | |
else return string.format("%.1fM", n / 1000000) end |
NewerOlder