mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-22 21:51:17 -09:00
start on custom entities
This commit is contained in:
parent
c484a18718
commit
c8664c7a5b
@ -1,4 +1,4 @@
|
||||
//This mod also requires lib.customitems.js
|
||||
//Demo mod showing how to use lib.customitems.js
|
||||
ModAPI.addEventListener("lib:libcustomitems:loaded", () => {
|
||||
console.log("Registered my cool custom item.");
|
||||
LibCustomItems.registerItem({
|
||||
|
@ -1,3 +1,24 @@
|
||||
(function CubeEntity() {
|
||||
|
||||
ModAPI.meta.title("Cube Entity");
|
||||
ModAPI.meta.version("v0");
|
||||
ModAPI.meta.description("testing custom entities");
|
||||
ModAPI.meta.credits("By ZXMushroom64");
|
||||
|
||||
function registerEntity() {
|
||||
|
||||
|
||||
return {
|
||||
EntityCube: null,
|
||||
ModelCube: null,
|
||||
RenderCube: null
|
||||
}
|
||||
}
|
||||
|
||||
ModAPI.dedicatedServer.appendCode(registerEntity);
|
||||
var data = registerEntity();
|
||||
|
||||
ModAPI.addEventListener("lib:asyncsink", async () => {
|
||||
//ModAPI.mc.renderManager.entityRenderMap.put(ModAPI.util.asClass(wellGetThere), new data.RenderCube(ModAPI.mc.renderManager.getRef()))
|
||||
AsyncSink.L10N.set("entity.Cube.name", "Cube (TM)");
|
||||
});
|
||||
})();
|
Loading…
x
Reference in New Issue
Block a user