Jump to content

l33tmaan

Very Important Vintarian
  • Posts

    2,222
  • Joined

  • Last visited

  • Days Won

    113

Posts posted by l33tmaan

  1. You mean changing the file path to something like assets/breadberry/itemtypes or lang or textures or whatever? I just tried that and this happened.

    So uh... I guess that's progress, actually? Let me mess around a bit and see if I can get things looking right. Here's the updated file, if it helps.

    2020-11-24_16-30-29.png

    BerryBread.zip

  2. @DArkHekRoMaNT So you know how you said that most of my textures would be broken? Well, I'm trying to actually make the bread look like it has berries in it now, and I am indeed breaking my textures. I thought the best way to do that would be to have a texture of each berry type and apply it as an overlay to the bread. But no matter what I do, I can't get it to actually show up. All the various breads just look like their normal variants. Am I misunderstanding what overlays are used for?

    textures: {
    		"all": {base: "game:item/food/grain/{type}bread",
    			overlays: [ "item/food/fruit/blackcurrant" ],
    },

     

    BerryBread.zip

  3. Thanks for that. I ran the error reporter this time and I got something useful:

    23.11.2020 16:32:33 [Error] Syntax error in json file 'game:recipes/grid/doughberry.json': Failed deserializing doughberry.json: After parsing a value an unexpected character was encountered: ". Path 'ingredients.F', line 14, position 2.

    Line 14 of my recipe is where I started putting in the berry info, but it looks the same as the other code? What's the problem here?

    EDIT: OH MY GOD I FORGOT TO PUT A COMMA! 
    Wow, I feel really dumb now. Anyway, is it possible for for this bread to count as a grain and a fruit?

  4. First off, let me tell you how much I appreciate you taking the time to look at this and help me out. I am very much learning as I go here, most of my coding knowledge is limited to baby stuff like HTML and CSS.

    2 hours ago, DArkHekRoMaNT said:

    Why are they game:? Where do you store your assets? In assets/game/? You can of course store assets there, but this is bad practice, this is the vanilla domain. Your assets should be in assets/<yourmodid>/

    Yeah... speaking of bad practices, I usually just create the .json file directly in the /survival folder and edit them there. Then I make the mod and remove it when I'm done. So in this case it should be in assets/berrybread, since berrybread is my ModID? If my modinfo is weird, then that might be because I uh... used ModMaker.exe to make it. Bad practices all around.

    1 hour ago, DArkHekRoMaNT said:

    You has mistake, line 28 in breadberry.json:
       "*": { saturation: 300, foodcategory: "Grain" , saturation: 80, foodcategory : "Fruit"}

    You can enter the command /errorreporter 1 in your test world and enable debug: Settings -> Developer -> Enable Developer Mode, Error Reporter and (optional) Extended Debug Info.

    Oh yeah, that. I know that isn't working, I was just experimenting in having food give 2 kinds of nourishment at once. Is there any way to do that for non-meal foods? I'm mostly concerned with getting the recipe to show up at the moment, I think I can fix the visual issues on my own. Hopefully. 

    EDIT: I managed to get the bread to show up in-game. I'm not really sure how, since I just cut a line out, tested the game, then pasted the same line back where it was... But would you be able to explain why the names look weird?

  5. Unfortunately, I think the ship has sailed on that one. This game is almost always going to be sold as "here's Minecraft, but with [something you wish Minecraft did] and [feature you never knew you wanted]" unless it gets RIDICULOUSLY huge. That's fine since there's a real niche to be filled that the game does a good job of doing. 

    I think cave-ins and stuff should definitely be a part of the regular game, but... I also don't play with the setting that makes dirt subject to real gravity because it's just too different for me. Plus cave-ins aren't quite the same danger as a monster - one is typically the result of a player's own actions and inattention, while the other is a totally external force that you have to overcome. This is already my favorite MC-style game and I think it sets itself apart from vanilla Minecraft quite well. But I also haven't played vanilla Minecraft in over 6 years.

  6. Cool, I didn't expect it to. So all it really does is stop you from falling off blocks and lets you fit into 1.5 square spaces, like under a slab? 
    I ask because I remember a Minecraft mod that added crouching/crawling and I loved it, since you could fit into 1x1 holes in a totally realistic manner. VS could benefit from something like that, especially if/when stealth actually means something, since you could crawl through the bushes towards your prey to catch them unawares. Might be cool.

  7. On 11/22/2020 at 9:00 AM, DArkHekRoMaNT said:

    You will not have shapes because you are using the wrong item code. Your whole dough is dough-berry-{type}-{fruit}. Textures will also be broken, they generally use other codes.

    Uhhh... weirdly enough, the shapes and textures are the only thing that are working so far.

    On the dough at least, I still can't get the bread to show up at all. I tried that code change last night and it didn't work, but I tried it again now and... it still didn't work. I feel like I'm missing something simple here.

    On 11/22/2020 at 8:56 AM, DArkHekRoMaNT said:

    And it would be good if you give an archive with your current version of the mod. It's strange that you have dough in the game domain.
    P.S. It is also best to call doughberry rather than dough-berry.

    Oh yeah, sure, here you go. Like I said, I tried to look at the Acorns mod since it's similar to this one and that's how it had its code written.

    Berry Bread.zip

  8. I thought I was getting a hang of modding this game, but I suppose not. I'm trying to make a type of bread you can make with berries and I've managed to get them to show up in-game (although the name looks weird, like 'game:item-dough-berry-spelt-blueberry), but I just can't get the actual recipe to work. I also can't get the dough to actually bake, but maybe I'm just crazy. I would really appreciate if anyone could help me out here, because I thought I sorta knew what I was doing. I even took a look at the Acorns mod to see how they made dough, and it's not dissimilar to this. 

    Spoiler
    
    
    {
    	ingredientPattern: "WFB",
    	ingredients: {
    		"W": { 
    			type: "block", 
    			code: "game:woodbucket"
    		},
    		"F": { 
    			type: "item", 
    			code: "game:flour-*", 
    			allowedVariants: ["flax", "rice", "rye", "spelt"],
    			name: "type"
    		}
    		"B": { 
    			type: "item", 
    			code: "game:fruit-*", 
    			allowedVariants: ["blueberry", "cranberry", "redcurrant", "whitecurrant", "blackcurrant"],
    			name: "fruit"
    		}
    	},
    	width: 3,
    	height: 1,
    	attributes: {
    		liquidContainerProps: {
    			requiresContent: { type: "item", code: "waterportion" },
    			requiresQuantity: 1
    		}
    	},
    	name: "dough-berry",
    	shapeless: true,
    	output: { type: "item", code: "dough-berry-{type}"  }
    }

     

    I dunno if it'll help, but here's my dough code:

    Spoiler
    
    {
    	code: "dough-berry",
    	maxstacksize: 32,
    	attributes: {
    		displaycaseable: true,
    		shelvable: true
    	},
    	variantgroups: [
    		{ code: "type", states: ["spelt", "rye", "flax", "rice" ] },
    		{ code: "fruit", states: ["blueberry", "cranberry", "redcurrant", "whitecurrant", "blackcurrant"] },
    	],
    	shapebytype: { 
    		"dough-berry-flax": { base: "item/food/bread/flaxbread-dough" },
    		"dough-berry-rice": { base: "item/food/bread/ricebread-dough" },
    		"dough-berry-spelt": { base: "item/food/bread/speltbread-dough" },
    		"dough-berry-rye": { base: "item/food/bread/ryebread-dough" },
    	},
    	textures: {
    		"flaxbread-dough": {base: "item/food/grain/flaxbread" },
    		"ricebread-dough": {base: "item/food/grain/ricebread" },
    		"speltbread-dough": {base: "item/food/grain/speltbread" },
    		"ryebread-dough": {base: "item/food/grain/ryebread" },
    	},
    	creativeinventory: { "general": ["*"], "items": ["*"] },
    	materialDensity: 200,
    	fpHandTransform: {
    		translation: { x: 0, y: -0.1, z: 0 },
    		rotation: { x: 180, y: 90, z: 22 }
    	},
    	combustibleProps: {
    		meltingPoint: 250,
    		meltingDuration: 15,
    		smeltedRatio: 1,
    		smeltingType: "bake",
    		smeltedStack: { type: "item", code: "bread-berry-{type}" },
    		requiresContainer: false
    	},
    	guiTransform: {
    		translation: { x: 2, y: 0, z: 0 },
    		rotation: { x: -28, y: 23, z: 180 },
    		origin: { x: 0.5, y: 0.07, z: 0.5 },
    		scale: 5
    	},
    	groundTransform: {
    		translation: { x: 0, y: 0, z: 0 },
    		rotation: { x: 0, y: 0, z: 1 },
    		origin: { x: 0.5, y: 0, z: 0.5 },
    		scale: 4
    	},
    	fpHandTransform: {
    		translation: { x: 0, y: 0.22, z: 0.2 },
    		rotation: { x: 97, y: 1, z: -17 },
    		origin: { x: 0.5, y: 0.1, z: 0.5 },
    		scale: 2.5
    	},
    	tpHandTransform: {
    		translation: { x: 0, y: 0, z: 0 },
    		rotation: { x: 25, y: 106, z: 54 },
    		origin: { x: 0.32, y: -0.25, z: -0.06 },
    		scale: 0.8
    	},
    	transitionableProps: [{
    		type: "Perish",
    		freshHours: { avg: 48 },
    		transitionHours: { avg: 24 },
    		transitionedStack: { type: "item", code: "rot" },
    		transitionRatio: 1
    	}]
    }

     

     

×
×
  • 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.