JSFiddle - React, Tailwind, and code Playground
by Drath
JavaScript
var items = {
log: { id: 33, name: "A Log", weight: 5, seconduse: ["Fuel","",8], group: "fuellike" },
branch: { id: 9, name: "A Branch", weight: 0.5, equip: "Weapon", attack: 1, durability: 10, seconduse: ["Fuel","", 1], group: "polelike" },
ironore: { id: 26, name: "Iron Ore", weight: 3 },
leaves: { id: 31, name: "Leaves", weight: 0.1 },
leafbedroll: { id: 29, name: "A Leaf Bedroll", use: "rest", weight: 1, durability: 25 },
largerock: { id: 28, name: "A Large Rock", use: "projectile", group: "rocklike", weight: 3 },
redmushroom: { id: 52, name: "A Spotted Red Mushroom", weight: 0.2, use: "edible", seconduse: ["Plant", "redmushroom_ground"], skilluse: "mycology", onuse: [-5, 8, 2] },
sharprock: { id: 57, name: "A Sharp Rock", use: "carving", weight: 1, group: "sharpeneditem", durability: 10 },
stones: { id: 62, name: "Stones", use: "projectile", weight: 1 },
mushrooms: { id: 35, name: "Common Mushrooms", weight: 0.2, use: "edible", seconduse: ["Plant", "mushrooms_ground"], skilluse: "mycology", onuse: [4, 2, 2] },
poorshovel: { id: 46, name: "A Poor Shovel", use: "digging", weight: 2, durability: 50, equip: "Weapon", attack: 2 },
pooraxe: { id: 42, name: "A Poor Axe", weight: 2, durability: 75, equip: "Weapon", attack: 3 },
soil: { id: 60, name: "Soil", weight: 2, use: "place", placetile: "dirt" },
fertilesoil: { id: 16, name: "Fertile Soil", weight: 2, seconduse: ["Garden","", 4] },
pileofsand: { id: 40, name: "A Pile of Sand", weight: 3, use: "place", placetile: "sand" },
pileofgravel: { id: 39, name: "A Pile of Gravel", weight: 3, use: "place", placetile: "gravel" },
pieceofsandstone: { id: 38, name: "Sandstone", use: "projectile", weight: 2 },
peat: { id: 37, name: "Peat", weight: 1, seconduse: ["Fuel","", 4] },
earthworm: { id: 14, name: "An Earthworm", weight: 0.1, use: "edible", onuse: [0, 2, 1] },
bone: { id: 8, name: "A Bone", weight: 0.5, equip: "Weapon", attack: 2,...