Jump to content

Recommended Posts

Posted

Not sure why but my summoning stones are not working since the update. I made some stones that let you summon two special traders. I also made them for summoning some animals. Animals work but the traders are broken.

 

rune:

{
	code: "craftsmanship:rune",
	maxstacksize: 64,
	behaviors: [{
		name: "GroundStorable",
		properties: {
			maxFireable: 48
		}
	}],
	attributes: {
		displaycaseable: true, 
		shelvable: true
	},
	variantgroups: [
		{ code: "state", states: ["raw" ] },
		{ code: "type", states: ["fehu", "uruz", "thurisaz", "ansuz", "wunjo", "nauthiz", "isa", "jera", "eihwaz", "algiz", "berkana", "laguz" ] }
	],
	shape: { base: "lore/runestone" },
	texturesByType: 
    {
       "*raw-fehu": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/{type}" }
		},
		"*raw-uruz": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/{type}" }
		},
		"*raw-thurisaz": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/{type}" }
		},
		"*raw-ansuz": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/{type}" }
		},
		"*raw-wunjo": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/{type}" }
		},
		"*raw-nauthiz": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/{type}" }
		},
		"*raw-isa": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/{type}" }
		},
		"*raw-jera": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/{type}" }
		},
		"*raw-eihwaz": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/{type}" }
		},
		"*raw-algiz": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/{type}" }
		},
		"*raw-berkana": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/{type}" }
		},
		"*raw-laguz": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/{type}" }
		}
	},
	attributesByType:{
		"*-raw-fehu":{
			beehivekiln:{
				"0": { "type": "item", "code": "creature-humanoid-trader-cultivation" }
			}
		},
	},
	creativeinventory: { "general": ["*"], "items": ["*"] },
    combustiblePropsByType: {
		"*raw-fehu": {
			meltingPoint: 600,
			meltingDuration: 48,
			smeltingType: "fire",
			smeltedStack: { type: "item", code: "creature-humanoid-trader-cultivation" },
			requiresContainer: false
		}
	},
	materialDensity: 700,
	guiTransform: {
		translation: { x: 6, y: -6, z: 0 },
		rotation: { x: -60, y: -31, z: -180 },
		origin: { x: 0.5, y: 0.1, z: 0.5 },
		scale: 4.56
	},
	fpHandTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 4, y: 15, z: 0 },
		origin: { x: 0.5, y: 0.1, z: 0.5 },
		scale: 1.97
	},
	groundTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 0, y: 0, z: 0 },
		origin: { x: 0.5, y: 0, z: 0.5 },
		scale: 2.7
	},
	tpHandTransform: {
		translation: { x: -0.73, y: -0.1, z: -0.67 },
		rotation: { x: -50, y: 27, z: -28 },
		origin: { x: 0.5, y: 0.1, z: 0.5 },
		scale: 0.75
	}
}

Trader:

{
	code: "craftsmanship:humanoid-trader-scholar",
	class: "EntityTrader",
	tags: ["humanoid", "trader", "human", "habitat-land"],
	weight: 80,
	canClimb: true,
	hitboxSize: { x: 0.6, y: 1.75 },
	deadHitboxSize: { x: 0.75, y: 0.5 },
    behaviorConfigs: {
        nametag: {
            showtagonlywhentargeted: true,
            triggeredNameReveal: true,
            unrevealedDisplayName: "nametag-trader-unrevealedname"
        }
    },
	client: {
		renderer: "Shape",
		shape: { base: "craftsmanship:entity/humanoid/trader" },
		texture: { base: "craftsmanship:entity/humanoid/trader", alternates: [
            { base: "craftsmanship:entity/humanoid/traderclothes/set1" },
            { base: "craftsmanship:entity/humanoid/traderclothes/set2" },
            { base: "craftsmanship:entity/humanoid/traderclothes/set3" },
            { base: "craftsmanship:entity/humanoid/traderclothes/set4" },
            { base: "craftsmanship:entity/humanoid/traderclothes/set5" }
        ] },
		behaviors: [
			{ code: "nametag" },
			{ code: "repulseagents" },
			{ code: "controlledphysics", stepHeight: 1.01 },
			{ code: "interpolateposition" },
            { code: "conversable", dialogue: "config/dialogue/trader" }
		],
		animations: [
			{
				code: "die",
				animation: "die",
				animationSpeed: 1.75,
				weight: 10,
				blendMode: "AddAverage"
			},
			{
				code: "hurt",
				animation: "hurt",
				animationSpeed: 2,
				blendMode: "AddAverage"
			},
            { code: "formal-walk", animation: "formal-walk", animationSpeed: 1.5 },
		]
	},
    attributes: {
        tradePropsFile: "config/tradelists/trader-scholar",
        tradeProps: {
            money: { avg: 30, var: 10 },
        }
    },
	server: {
		attributes: {
			pathfinder: {
				minTurnAnglePerSec: 720,
				maxTurnAnglePerSec: 1440
			}
		},
		behaviors: [
			{ code: "nametag", "showtagonlywhentargeted": true, selectFromRandomName: ["Deckard Cain"] },
			{ code: "repulseagents" },
			{ code: "controlledphysics", stepHeight: 1.01 },
			{ code: "reviveondeath", minHours: 24, maxHours: 72 },
			{ code: "health", currenthealth: 25, maxhealth: 25 },
			{
				code: "emotionstates",
				states: [
					{ code: "aggressiveondamage", duration: 6, chance: 0.6, slot: 0, priority: 2, accumType: "noaccum" },
					{ code: "fleeondamage", duration: 10, chance: 0.4, slot: 0, priority: 1, accumType: "max" }
				],
			},
			{
				code: "taskai",
				aitasks: [
					{
						code: "meleeattack",
						entityCodes: ["player"],
						priority: 2,
						damage: 5,
						mincooldown: 2500,
						maxcooldown: 3500,
						attackDurationMs: 900,
						damagePlayerAtMs: 300,
						animation: "Attack",
						animationSpeed: 2,
						whenInEmotionState: "aggressiveondamage",
					},
					{
						code: "seekentity",
						entityCodes: ["player"],
						priority: 1.5,
						mincooldown: 1000,
						maxcooldown: 1500,
						seekingRange: 20,
						movespeed: 0.035,
						animation: "Run",
						animationSpeed: 1.75,
						whenInEmotionState: "aggressiveondamage"
					},
					{
						code: "fleeentity",
						entityCodes: ["player"],
						priority: 1.5,
						movespeed: 0.035,
						seekingRange: 12,
						animation: "Run",
						animationSpeed: 1.75,
						whenInEmotionState: "fleeondamage"
					},
					{
						code: "idle",
						priority: 1.2,
						minduration: 2500,
						maxduration: 2500,
						mincooldown: 2000,
						maxcooldown: 10000,
						animation: "laugh"
					},
					{
						code: "idle",
						priority: 1.2,
						minduration: 2500,
						maxduration: 2500,
						mincooldown: 5000,
						maxcooldown: 30000,
						animation: "idle2"
					},
					{
						code: "wander",
						priority: 1.0,
						movespeed: 0.01,
						animation: "Walk",
						wanderChance: 0.005,
						maxDistanceToSpawn: 4,
						wanderRangeMin: 1,
						wanderRangeMax: 3
					},
					{
						code: "lookaround",
						priority: 0.5
					}
				]
			},
            { code: "conversable", dialogue: "config/dialogue/trader" },
			{ code: "entitystatetags" }
		],
	},
	sounds: {
	}
}

Creature Script:

{
	code: "craftsmanship:creature",
	class: "ItemCreature",
	maxstacksize: 64,
	variantgroups: [
		{ code: "type", states: [ "humanoid-trader-cultivation","summonedhare-european-adult-female", "summonedwolf-eurasian-adult-female", "summonedbear-polar-adult-female",
		"humanoid-trader-scholar", "bellmini-crafted", "locust-crafted"
		] }
	],
	shapeByType: {	
		"*-cultivation": { base: "lore/runestone" },
		"*summonedhare*": { base: "lore/runestone" },
		"*summonedwolf*": { base: "lore/runestone" },	
		"*summonedbear*": { base: "lore/runestone" },
		"*-scholar": { base: "lore/runestone" },
		"*-bellmini-crafted": { base: "game:entity/lore/bell/bell" },
		"*-locust-crafted": { base: "game:entity/lore/locust/locust-bronze" },
		"*": { base: "entity/land/{type}" }
	},
	texturesByType: {
		"*-cultivation": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/fehu-summoned" }
		},
		"*summonedhare*": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/berkana-summoned" }
		},
		"*summonedwolf*": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/uruz-summoned" }
		},
		"*summonedbear*": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/nauthiz-summoned" }
		},
		"*-scholar": {
            "rune": { base: "polished/flint" },
			"symbol": { base: "lore/runestone/ansuz-summoned" }
		},
		"*-bellmini-crafted": {
            "bell": { base: "game:entity/lore/bell/bell-tobias" }
		},
		"*-locust-crafted": {
             "skin":{ base: "game:entity/lore/locust/bronze" } 
		}
	},
	creativeinventory: { "general": ["*"], "items": ["*"], "creatures": ["*"] },
	materialDensity: 600,
	guiTransformByType: {
		"creature-humanoid-trader-*": {
			translation: { x: 6, y: -6, z: 0 },
			rotation: { x: -60, y: -31, z: -180 },
			origin: { x: 0.5, y: 0.1, z: 0.5 },
			scale: 4.56
		},
		"*-bellmini-crafted": {
			translation: { x: 5, y: 7, z: 0 },
			rotation: { x: -60, y: -31, z: -180 },
			origin: { x: 0.5, y: 0.1, z: 0.5 },
			scale: 1.53
		},
		"*-locust-crafted": {
			translation: { x: 4, y: 5, z: 0 },
			rotation: { x: -60, y: -112, z: 147 },
			origin: { x: 0.5, y: 0.1, z: 0.5 },
			scale: 1.86
		},
		"*": {
			translation: { x: 6, y: -6, z: 0 },
			rotation: { x: -60, y: -31, z: -180 },
			origin: { x: 0.5, y: 0.1, z: 0.5 },
			scale: 4.56
		}
	},	
	tpHandTransformByType: {
		"creature-humanoid-trader-*": {
			translation: { x: -0.73, y: -0.1, z: -0.67 },
			rotation: { x: -50, y: 27, z: -28 },
			origin: { x: 0.5, y: 0.1, z: 0.5 },
			scale: 0.75
		}
	},
	fpHandTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 4, y: 15, z: 0 },
		origin: { x: 0.5, y: 0.1, z: 0.5 },
		scale: 1.97
	},
	groundTransform: {
		translation: { x: 0, y: 0, z: 0 },
		rotation: { x: 0, y: 0, z: 0 },
		origin: { x: 0.5, y: 0, z: 0.5 },
		scale: 2.7
	}
}

 

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.