Jump to content

Recommended Posts

Posted (edited)

I have learned how to create items, mess with JSON files, as well as custom recipes (don't use JSON for those), armor, and even custom ore in the ground.

 

I have searched high and low for a tutorial on shields, and thereby learn the structures to create such, and I have found little in terms of legit tutorials that are still alive (and kicking).

 

Help would be appreciated!

 

This works as a kludge.

{
    "parent": "item/generated",
    "textures": {
       "layer0": "tm:entity/shield_<Type goes here>"
    },

   "display": {
        "thirdperson_righthand": {
            "rotation": [ 45, 135, 0 ],
            "translation": [ 1, 1, 0 ],
            "scale": [ 1, 1, 1 ]
        },

      perspective, transforms, etc...

}

}

 

 

So far I have created a subclass of item (cloned everything).  I can't seem to get this to work in the shield_<some type goes here>. json.  I ususally use 

 

...stuff then,

 

    "overrides": [
        {
            "predicate": {
                "blocking": 1
            },
            "model": "item/shield_blocking"
        }
    ]

 

The override-json does not work at all.  I'd like to get the block-animation working on right-click, instead of showing the purple-checker-block O' teeth-gnashing.

 

-Charlie

Edited by Comp_Sci_Charlie
Posted

Does the model work normally when your not blocking? Does your log contain any errors?

About Me

Spoiler

My Discord - Cadiboo#8887

My WebsiteCadiboo.github.io

My ModsCadiboo.github.io/projects

My TutorialsCadiboo.github.io/tutorials

Versions below 1.14.4 are no longer supported on this forum. Use the latest version to receive support.

When asking support remember to include all relevant log files (logs are found in .minecraft/logs/), code if applicable and screenshots if possible.

Only download mods from trusted sites like CurseForge (minecraft.curseforge.com). A list of bad sites can be found here, with more information available at stopmodreposts.org

Edit your own signature at www.minecraftforge.net/forum/settings/signature/ (Make sure to check its compatibility with the Dark Theme)

Posted

Yes, the model works just fine, and still blocks projectiles.  I have a version where the JSON does not call overrides, and it works fine (but kludgey), a version that does call overrides, where the shield turns into a purple cube, and a version that simply calls the blocking JSON itself, which works fine (like the first).  The problem seems to stem from when shield<name>_blocking.json is called.  How would I trace this?

 

Looking at the log...

[12:11:01] [main/INFO]: Setting user: Player474
[12:11:05] [main/WARN]: Skipping bad option: lastServer:
[12:11:05] [main/INFO]: LWJGL Version: 2.9.4
[12:11:08] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Tutorial 2: Item creation
[12:11:12] [Sound Library Loader/INFO]: Starting up SoundSystem...
[12:11:12] [Thread-5/INFO]: Initializing LWJGL OpenAL
[12:11:12] [Thread-5/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[12:11:13] [Thread-5/INFO]: OpenAL initialized.
[12:11:13] [Sound Library Loader/INFO]: Sound engine started
[12:11:19] [main/INFO]: Created: 1024x512 textures-atlas
[12:11:21] [main/WARN]: Skipping bad option: lastServer:
[12:11:21] [main/INFO]: Narrator library for x64 successfully loaded
[12:11:23] [Realms Notification Availability checker #1/INFO]: Could not authorize you against Realms server: Invalid session id
[12:11:29] [Server thread/INFO]: Starting integrated minecraft server version 1.12.2
[12:11:29] [Server thread/INFO]: Generating keypair
[12:11:30] [Server thread/INFO]: Loaded 488 advancements
[12:11:30] [Server thread/INFO]: Preparing start region for level 0
[12:11:31] [Server thread/INFO]: Changing view distance to 12, from 10
[12:11:32] [Server thread/INFO]: Player474[local:E:202348f2] logged in with entity id 129 at (-273.2993547414569, 65.0, 631.7218001261882)
[12:11:32] [Server thread/INFO]: Player474 joined the game
[12:11:33] [Server thread/INFO]: Saving and pausing game...
[12:11:33] [Server thread/INFO]: Saving chunks for level 'CustomShields'/overworld
[12:11:34] [Server thread/INFO]: Saving chunks for level 'CustomShields'/the_nether
[12:11:34] [Server thread/INFO]: Saving chunks for level 'CustomShields'/the_end
[12:11:34] [pool-2-thread-1/WARN]: Couldn't look up profile properties for com.mojang.authlib.GameProfile@1793b9d4[id=fd848f75-c1a0-33b6-9d05-284593849e10,name=Player474,properties={},legacy=false]
com.mojang.authlib.exceptions.AuthenticationException: The client has sent too many requests within a certain amount of time
    at com.mojang.authlib.yggdrasil.YggdrasilAuthenticationService.makeRequest(YggdrasilAuthenticationService.java:79) ~[YggdrasilAuthenticationService.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillGameProfile(YggdrasilMinecraftSessionService.java:180) [YggdrasilMinecraftSessionService.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:60) [YggdrasilMinecraftSessionService$1.class:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService$1.load(YggdrasilMinecraftSessionService.java:57) [YggdrasilMinecraftSessionService$1.class:?]
    at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3716) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2424) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2298) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2211) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache.get(LocalCache.java:4154) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4158) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:5147) [guava-21.0.jar:?]
    at com.google.common.cache.LocalCache$LocalLoadingCache.getUnchecked(LocalCache.java:5153) [guava-21.0.jar:?]
    at com.mojang.authlib.yggdrasil.YggdrasilMinecraftSessionService.fillProfileProperties(YggdrasilMinecraftSessionService.java:170) [YggdrasilMinecraftSessionService.class:?]
    at net.minecraft.client.Minecraft.getProfileProperties(Minecraft.java:3188) [Minecraft.class:?]
    at net.minecraft.client.resources.SkinManager$3.run(SkinManager.java:138) [SkinManager$3.class:?]
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) [?:1.8.0_162]
    at java.util.concurrent.FutureTask.run(Unknown Source) [?:1.8.0_162]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [?:1.8.0_162]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [?:1.8.0_162]
    at java.lang.Thread.run(Unknown Source) [?:1.8.0_162]
[12:11:34] [main/INFO]: Loaded 49 advancements
[12:11:46] [Server thread/INFO]: Saving and pausing game...
[12:11:46] [Server thread/INFO]: Saving chunks for level 'CustomShields'/overworld
[12:11:46] [Server thread/INFO]: Saving chunks for level 'CustomShields'/the_nether
[12:11:46] [Server thread/INFO]: Saving chunks for level 'CustomShields'/the_end
[12:12:15] [main/INFO]: [CHAT] [Debug]: Reloaded resource packs
[12:12:15] [main/INFO]: Reloading ResourceManager: Default, FMLFileResourcePack:Forge Mod Loader, FMLFileResourcePack:Minecraft Forge, FMLFileResourcePack:Tutorial 2: Item creation
[12:12:16] [Server thread/INFO]: Loaded 488 advancements
[12:12:19] [main/INFO]: SoundSystem shutting down...
[12:12:19] [main/WARN]: Author: Paul Lamb, www.paulscode.com
[12:12:19] [Sound Library Loader/INFO]: Starting up SoundSystem...
[12:12:19] [Thread-12/INFO]: Initializing LWJGL OpenAL
[12:12:19] [Thread-12/INFO]: (The LWJGL binding of OpenAL.  For more information, see http://www.lwjgl.org)
[12:12:19] [Thread-12/INFO]: OpenAL initialized.
[12:12:19] [Sound Library Loader/INFO]: Sound engine started
[12:12:24] [main/INFO]: Created: 1024x512 textures-atlas
[12:12:24] [main/INFO]: Loaded 49 advancements
[12:15:14] [Server thread/INFO]: Saving and pausing game...
[12:15:14] [Server thread/INFO]: Saving chunks for level 'CustomShields'/overworld
[12:15:15] [Server thread/INFO]: Saving chunks for level 'CustomShields'/the_nether
[12:15:15] [Server thread/INFO]: Saving chunks for level 'CustomShields'/the_end
[12:15:21] [Server thread/INFO]: Stopping server
[12:15:21] [Server thread/INFO]: Saving players
[12:15:21] [Server thread/INFO]: Player474 lost connection: Disconnected
[12:15:21] [Server thread/INFO]: Player474 left the game
[12:15:21] [Server thread/INFO]: Stopping singleplayer server as player logged out
[12:15:21] [Server thread/INFO]: Saving worlds
[12:15:21] [Server thread/INFO]: Saving chunks for level 'CustomShields'/overworld
[12:15:21] [Server thread/INFO]: Saving chunks for level 'CustomShields'/the_nether
[12:15:21] [Server thread/INFO]: Saving chunks for level 'CustomShields'/the_end
[12:15:22] [main/INFO]: Stopping!
[12:15:22] [main/INFO]: SoundSystem shutting down...
[12:15:23] [main/WARN]: Author: Paul Lamb, www.paulscode.com

The log shows nothing.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.