i have a mod which adds realistic 3d weapons but this mod has some problems…
U can add a weapon some modifications like Foregrip…
The problem is if u put an weapon thats not had any magazines before (no Nbt tag for magazines) server crashes…
i want to get weapons Nbt data and check if it has some or not…
if there is no Nbt data event will be canceled…
Most of Sponge’s classes can be cast to the native net.minecraft classes.
Generally we recommend making a compat mod if you need to do anything complex with a 3rd party mod. This is a Forge mod that works at the MC level, providing an interface for SpongeAPI plugins to use without having to reach into MC internals.
Otherwise, you can also import the minecraft internals (eg using ForgeGradle) and then access them in your plugin.
Thank you but im just newbie at libraries like Sponge
I dont wanna get myself messed up while working in Keys and stuff
is there a way that i can get all item data as a string like
{EntityTag:{id:“AK47”}} ??
/entitydata in minecraft gives some info like this…