Skip to content

Commit

Permalink
first commit of 1.19.x format of mod. Makes the following important c…
Browse files Browse the repository at this point in the history
…hanges:

* Adds "AnimationAuthoritative" in "behaviors" JSON key as per 1.19.x changes
*  "heldTpHitAnimation": "falx",
* removes class:"ItemSword" as it is removed/deprecated in 1.19 - big change from 1.17
Thanks DanaCranaluminum for the first set of fixes and the new directory structure.
  • Loading branch information
surio committed Sep 29, 2024
0 parents commit fab01e7
Show file tree
Hide file tree
Showing 169 changed files with 39,560 additions and 0 deletions.
103 changes: 103 additions & 0 deletions assets/tonwexp/blocktypes/toolmold.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,103 @@
{
"code": "toolmold",
"classByType": {
"toolmold-raw-*": "Block",
"toolmold-burned-*": "BlockToolMold",
},
"behaviorsByType": {
"*-raw-*": [
{ "name": "GroundStorable",
"properties": { "layout": 'SingleCenter' } },
{ "name": "Unplaceable",
"__comment": "The ground storable obsoletes this being a block. Should be an item, but is kept a block for backwards compatibility" },
{ "name": "RightClickPickup"}
],
"*": [{"name": "UnstableFalling"}],
},
"variantgroups": [
{ "code":"materialtype",
"states": ["raw", "burned"] },
{ "code":"tooltype",
"states": ["bages" , "macehead" , "spearhead"] }
],
"attributesByType": {
"toolmold-burned-*": {
"requiredUnits": 100,
"fillHeight": 1,
"moldrackable": true,
"onmoldrackTransform": { "rotation": { "z": 90 } },
"drop": {
"type": "item",
"code": "tonwexp:{tooltype}-{metal}",
"stacksize": 1
}
},
},
"entityClassByType": {
"toolmold-burned-*": "ToolMold",
},
"combustiblePropsByType": {
"toolmold-raw-*": {
"meltingPoint": 650,
"meltingDuration": 45,
"smeltedRatio": 1,
"smeltingType": "fire",
"smeltedStack": { "type": "block", "code": "toolmold-burned-{tooltype}" },
"requiresContainer": false
}
},
"blockmaterial": "Ceramic",
"creativeinventory": { "general": ["*"], "construction": ["*"], "tonwexp": ["*"] },
"replaceable": 700,
"resistance": 1.5,
"maxStackSize": 8,
"lightAbsorption": 0,
"texturesByType": {
"toolmold-raw-*": { "all": { "base": "game:block/clay/blueclay" } },
"toolmold-burned-*": { "all": { "base": "game:block/clay/ceramic" } }
},
"shape": { "base": "tonwexp:block/mold/{tooltype}", "rotateY": 90 },
"sounds": {
"walk": "walk/stone",
},
"collisionboxByType": {
"*": { x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.1875, z2: 1 },
},
"selectionboxByType": {
"*": { x1: 0, y1: 0, z1: 0, x2: 1, y2: 0.1875, z2: 1 },
},
"sideopaque": {
"all": false
},
"sidesolid": {
"all": false
},
"guiTransformByType": {
"*": {
"translation": { x: 0, y: 3, z: 0 },
"origin": { x: 0.5, y: 0.0625, z: 0.5 },
"scale": 1.33
}
},
"tpHandTransformByType": {
"*": {
"translation": { x: -1, y: 0.2, z: -0.9 },
"rotation": { x: -87, y: 9, z: 4 },
"origin": { x: 0.5, y: 0.125, z: 0.5 },
"scale": 0.5
}
},
"fpHandTransformByType": {
"*": {
"translation": { x: -0.3, y: 0, z: 0.5 },
"rotation": { x: 16, y: -51, z: 91 },
"origin": { x: 0.5, y: 0.125, z: 0.5 }
}
},
"groundTransform": {
"translation": { x: 0, y: 0, z: 0 },
"rotation": { x: 0, y: -45, z: 0 },
"origin": { x: 0.5, y: 0, z: 0.5 },
"scale": 2.2
}
}
45 changes: 45 additions & 0 deletions assets/tonwexp/entities/pilum.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"code": "pilum",
"class": "EntityProjectile",
"hitboxSize": { "x": 0.125,"y": 0.125 },
"variantgroups": [
{ "code": "material", "states": ["tinbronze", "bismuthbronze", "blackbronze", "iron", "meteoriciron", "steel"] },
],
"client": {
"size": 0.85,
"renderer": "Shape",
"shapeByType": {
"pilum-tinbronze": { "base": "tonwexp:item/pilum" },
"pilum-bismuthbronze": { "base": "tonwexp:item/pilum"},
"pilum-blackbronze": { "base": "tonwexp:item/pilum" },
"pilum-iron": { "base": "tonwexp:item/pilum" },
"pilum-meteoriciron": { "base": "tonwexp:item/pilum" },
"pilum-steel": { "base": "tonwexp:item/pilum" },
},
"texturesByType": {
"*": {"material": { "base": "game:block/metal/ingot/{material}" }}
},
"behaviors": [
{
"code": "passivephysics",
"groundDragFactor": 1,
"airDragFactor": 0.25,
"gravityFactor": 0.55
},
{ "code": "interpolateposition" }
],
},
"server": {
"behaviors": [
{
"code": "passivephysics",
"groundDragFactor": 1,
"airDragFactor": 0.25,
"gravityFactor": 0.55
},
{ "code": "despawn", "minSeconds": 600 }
]
},
"sounds": {
},
}
46 changes: 46 additions & 0 deletions assets/tonwexp/entities/spear.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"code": "spear",
"class": "EntityProjectile",
"hitboxSize": { "x": 0.125,"y": 0.125 },
"variantgroups": [
{ "code": "material", "states": ["copper", "tinbronze", "bismuthbronze", "blackbronze", "iron", "meteoriciron", "steel"] },
],
"client": {
"size": 0.45,
"renderer": "Shape",
"shapeByType": {
"spear-copper": { "base": "tonwexp:item/spearbronze" },
"spear-tinbronze": { "base": "tonwexp:item/spearbronze" },
"spear-bismuthbronze": { "base": "tonwexp:item/spearbronze" },
"spear-blackbronze": { "base": "tonwexp:item/spearbronze" },
"spear-iron": { "base": "tonwexp:item/speariron" },
"spear-meteoriciron": { "base": "tonwexp:item/spearmeteor" },
"spear-steel": { "base": "tonwexp:item/spearsteel" },
},
"texturesByType": {
"*": {"material": { "base": "game:block/metal/ingot/{material}" }}
},
"behaviors": [
{
"code": "passivephysics",
"groundDragFactor": 1,
"airDragFactor": 0.15,
"gravityFactor": 2.5
},
{ "code": "interpolateposition" }
],
},
"server": {
"behaviors": [
{
"code": "passivephysics",
"groundDragFactor": 1,
"airDragFactor": 0.15,
"gravityFactor": 2.5
},
{ "code": "despawn", "minSeconds": 600 }
]
},
"sounds": {
},
}
52 changes: 52 additions & 0 deletions assets/tonwexp/itemtypes/liquid/lac.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"code": "lacportion",
"class": "ItemLiquidPortion",
"matterState": "liquid",
"attributes": {
"handbook": {
"ignoreCreativeInvStacks": true
},
"waterTightContainerProps": {
"containable": true,
"itemsPerLitre": 100,
"texture": { "base": "game:block/liquid/limewater" },
"allowSpill": true,
"whenSpilled": {
"action": "DropContents",
"stack": { "type": "item", "code": "tonwexp:lacportion" }
}
}
},
"shape": { "base": "game:item/liquid" },
"texture": { "base": "game:block/liquid/limewater" },
"creativeinventoryStacks": [
{ "tabs": ["general", "liquids", "tonwexp"],
"stacks": [
{"type": "block", "code": "game:woodbucket",
"attributes":
{ "ucontents":
[ {"type":"item",
"code": "tonwexp:lacportion",
"makefull": true }
]
}
}
]
}
],
"maxstacksize": 5000,
"materialDensity": 200,
"guiTransform": {
translation: { x: 0, y: 1, z: 0 },
rotation: { x: 123, y: -33, z: -13 },
origin: { x: 0.5, y: 0, z: 0.5 },
scale: 1.4
},
"fpHandTransform": {
translation: { x: 0, y: 0, z: 0 },
rotation: { x: 25, y: 157, z: -5 }
},
"tpHandTransform": {
translation: { x: -1.5, y: -1, z: -1.4 }
}
}
55 changes: 55 additions & 0 deletions assets/tonwexp/itemtypes/liquid/laccolor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"code": "laccolor",
"class": "ItemLiquidPortion",
"matterState": "liquid",
"variantgroups": [
{ "code": "color", "states": [ "green", "yellow", "orange" ]}
],
"attributes": {
"handbook": {
"ignoreCreativeInvStacks": true
},
"waterTightContainerProps": {
"containable": true,
"itemsPerLitre": 100,
"texture": { "base": "game:block/liquid/dye/{color}" },
"allowSpill": true,
"whenSpilled": {
"action": "DropContents",
"stack": { "type": "item", "code": "tonwexp:laccolor-{color}" }
}
}
},
"shape": { "base": "game:item/liquid" },
"texture": { "base": "game:block/liquid/dye/{color}" },
"creativeinventoryStacks": [
{ "tabs": ["general", "liquids", "tonwexp"],
"stacks": [
{"type": "block", "code": "game:woodbucket",
"attributes":
{ "ucontents":
[ {"type":"item",
"code": "tonwexp:laccolor-{color}",
"makefull": true }
]
}
}
]
}
],
"maxstacksize": 5000,
"materialDensity": 200,
"guiTransform": {
translation: { x: 0, y: 1, z: 0 },
rotation: { x: 123, y: -33, z: -13 },
origin: { x: 0.5, y: 0, z: 0.5 },
scale: 1.4
},
"fpHandTransform": {
translation: { x: 0, y: 0, z: 0 },
rotation: { x: 25, y: 157, z: -5 }
},
"tpHandTransform": {
translation: { x: -1.5, y: -1, z: -1.4 }
}
}
54 changes: 54 additions & 0 deletions assets/tonwexp/itemtypes/scalecolor.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"code": "scalecolor",
"shape": { "base": "game:item/scales" },
"textures": {
"material": { "base": "game:block/cloth/linen/{color}" }
},
"maxstacksize": 8,
"storageFlags": 5,
"attributes": {
"handbook": {
"groupBy": ["scalecolor-*"]
}
},
"variantgroups": [{ "code": "color", "states": ["green", "yellow", "orange"] }],
"texture": { "base": "game:block/cloth/linen/{color}" },
"creativeinventory": { "general": ["*"], "items": ["*"], "tonwexp": ["*"] },
"materialDensityByType": {
"*-green": 7870,
"*-yellow": 7870,
"*-orange": 7870
},
"combustiblePropsByType": {
"scalecolor-*": {
"meltingPoint": 1482,
"meltingDuration": 30,
"smeltedRatio": 1,
"smeltedStack": { "type": "item", "code": "game:ingot-iron", "stacksize": 1 }
}
},
"fpHandTransform": {
"translation": { "x": 0, "y": 0.2, "z": 0 },
"rotation": { "x": 21, "y": 0, "z": -1 },
"origin": { "x": 0.5, "y": -0.3, "z": 0.5 },
"scale": 1.8
},
"guiTransform": {
"translation": { "x": 0, "y": 0, "z": 0 },
"rotation": { "x": -30, "y": -44, "z": -180 },
"origin": { "x": 0.45, "y": 0.09, "z": 0.5 },
"scale": 3
},
"groundTransform": {
"translation": { "x": 0, "y": 0, "z": 0 },
"rotation": { "x": 0, "y": 90, "z": 0 },
"origin": { "x": 0.5, "y": 0, "z": 0.5 },
"scale": 3.31
},
"tpHandTransform": {
"translation": { "x": -0.7, "y": 0.1, "z": -0.53 },
"rotation": { "x": 94, "y": 0, "z": 0 },
"origin": { "x": 0.5, "y": 0.1, "z": 0.5 },
"scale": 0.75
}
}
Loading

0 comments on commit fab01e7

Please sign in to comment.