From 22d68741021083689dfce126ae42749af4bb4f10 Mon Sep 17 00:00:00 2001 From: Sollace Date: Sat, 20 Apr 2024 17:20:18 +0100 Subject: [PATCH] Give them legs and they can breath underwater now --- assets/models/mimic.bbmodel | 2 +- assets/models/mimic.java | 13 +++++ .../render/entity/MimicEntityRenderer.java | 50 +++++++++++++------ .../unicopia/entity/mob/MimicEntity.java | 16 +++++- 4 files changed, 62 insertions(+), 19 deletions(-) diff --git a/assets/models/mimic.bbmodel b/assets/models/mimic.bbmodel index f4a6339d..6bff39e0 100644 --- a/assets/models/mimic.bbmodel +++ b/assets/models/mimic.bbmodel @@ -1 +1 @@ -{"meta":{"format_version":"4.9","model_format":"modded_entity","box_uv":true},"name":"mimic","model_identifier":"","modded_entity_version":"Fabric 1.17+","modded_entity_flip_y":true,"visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"timeline_setups":[],"unhandled_root_fields":{},"resolution":{"width":64,"height":64},"elements":[{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-1,5,5],"to":[1,9,6],"autouv":0,"color":0,"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"9d61ad16-6c82-9a20-5701-12ba5093bf3c"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[2,5,5],"to":[4,9,6],"autouv":0,"color":0,"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"d25b1a82-7e3e-c44f-623d-6ea50d66066f"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-4,5,5],"to":[-2,9,6],"autouv":0,"color":0,"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"afb53261-4022-e68b-7664-d6a854d3239f"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[10,5,-2],"to":[12,9,-1],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"0ffff8f3-55f3-ba96-fd1e-f1364423e084"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,5,-2],"to":[9,9,-1],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"491606c6-699f-841f-a8ab-e8cdec547c68"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[4,5,-2],"to":[6,9,-1],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"b4218883-bb0c-c89b-1cc8-a056d52c536e"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[4,5,-13],"to":[6,9,-12],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"85b2bed3-39f9-1e1c-ecd2-d688e58e2901"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,5,-13],"to":[9,9,-12],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"025ec1fd-f7bc-2d27-0393-50f206244268"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[10,5,-13],"to":[12,9,-12],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"62541bca-746b-c4c1-b4fa-f80ae51de5a7"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-1,4,5],"to":[1,8,6],"autouv":0,"color":0,"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"8c299ddd-aee9-17a1-3a67-2b45fec41dbd"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[2,4,5],"to":[4,8,6],"autouv":0,"color":0,"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"c3e8c8d9-92d0-b027-aaff-323d36237f18"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-4,4,5],"to":[-2,8,6],"autouv":0,"color":0,"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"74c2d8e5-4f69-f77d-814a-b71479a7d8a3"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[10,4,-2],"to":[12,8,-1],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"bea44a0b-36e2-2669-cd89-28e0afd4c448"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,4,-2],"to":[9,8,-1],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"949c17f4-860c-7c24-189a-fa0e74f3666e"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[4,4,-2],"to":[6,8,-1],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"06536cdb-7e75-261b-c8d5-a32b7a5a0e76"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[10,4,-13],"to":[12,8,-12],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"0e52be90-4685-d6f1-6b91-c3eb5f8593ca"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,4,-13],"to":[9,8,-12],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"c343e272-4edc-25ec-e874-f562d4f6f0ec"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[4,4,-13],"to":[6,8,-12],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"1ee91a5f-63e6-af9d-582c-21b579f93773"},{"name":"tongue","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-3,9,1],"to":[3,10,9],"autouv":0,"color":0,"rotation":[-30.000000000000068,0,0],"origin":[0,0,0],"uv_offset":[11,34],"faces":{"north":{"uv":[19,42,25,43],"texture":0},"east":{"uv":[11,42,19,43],"texture":0},"south":{"uv":[33,42,39,43],"texture":0},"west":{"uv":[25,42,33,43],"texture":0},"up":{"uv":[25,42,19,34],"texture":0},"down":{"uv":[31,34,25,42],"texture":0}},"type":"cube","uuid":"5370d06e-ecbb-fb06-26bb-8225234d4589"}],"outliner":[{"name":"lid","origin":[0,7,-7],"rotation":[47.5,0,-180],"color":0,"uuid":"704f8283-e7f5-5ff9-eb85-66ed5a7e1199","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["5370d06e-ecbb-fb06-26bb-8225234d4589",{"name":"upper_teeth","origin":[0,0,0],"color":0,"uuid":"6ece85ba-c460-6c7c-1bbd-2f4390cf4c44","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["8c299ddd-aee9-17a1-3a67-2b45fec41dbd","c3e8c8d9-92d0-b027-aaff-323d36237f18","74c2d8e5-4f69-f77d-814a-b71479a7d8a3","bea44a0b-36e2-2669-cd89-28e0afd4c448","949c17f4-860c-7c24-189a-fa0e74f3666e","06536cdb-7e75-261b-c8d5-a32b7a5a0e76","0e52be90-4685-d6f1-6b91-c3eb5f8593ca","c343e272-4edc-25ec-e874-f562d4f6f0ec","1ee91a5f-63e6-af9d-582c-21b579f93773"]}]},{"name":"lower_teeth","origin":[0,8,-7],"color":0,"uuid":"95035b43-0bfe-81c7-51ac-bb824489552b","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["9d61ad16-6c82-9a20-5701-12ba5093bf3c","d25b1a82-7e3e-c44f-623d-6ea50d66066f","afb53261-4022-e68b-7664-d6a854d3239f","0ffff8f3-55f3-ba96-fd1e-f1364423e084","491606c6-699f-841f-a8ab-e8cdec547c68","b4218883-bb0c-c89b-1cc8-a056d52c536e","62541bca-746b-c4c1-b4fa-f80ae51de5a7","025ec1fd-f7bc-2d27-0393-50f206244268","85b2bed3-39f9-1e1c-ecd2-d688e58e2901"]}],"textures":[{"path":"/home/sollace/Documents/GitRepos/minecraft_mods/normal.png","name":"normal.png","folder":"","namespace":"","id":"0","width":64,"height":64,"uv_width":64,"uv_height":64,"particle":false,"layers_enabled":false,"sync_to_project":"","render_mode":"default","render_sides":"auto","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"internal":true,"saved":true,"uuid":"b2322db6-1c29-09ad-3b26-7e50165557cd","relative_path":"../../../../normal.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABqNJREFUeF7tWltsVEUY/s45u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2lhhghVWdVGeJAU4aLSvaWmKAFVZ1Up0lBjhptKxoa4kBVljVSXWWGOCk0bKirSUGWGFVJ9VZYoCTRsuKtt72DPgPhw24jE6OT1AAAAAASUVORK5CYII="}],"fabricOptions":{"header":"package com.example.mod;","entity":"Entity","render":"","members":""}} \ No newline at end of file +{"meta":{"format_version":"4.9","model_format":"modded_entity","box_uv":true},"name":"mimic","model_identifier":"","modded_entity_version":"Fabric 1.17+","modded_entity_flip_y":true,"visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"timeline_setups":[],"unhandled_root_fields":{},"resolution":{"width":64,"height":64},"elements":[{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-1,5,5],"to":[1,9,6],"autouv":0,"color":0,"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"9d61ad16-6c82-9a20-5701-12ba5093bf3c"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[2,5,5],"to":[4,9,6],"autouv":0,"color":0,"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"d25b1a82-7e3e-c44f-623d-6ea50d66066f"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-4,5,5],"to":[-2,9,6],"autouv":0,"color":0,"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"afb53261-4022-e68b-7664-d6a854d3239f"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[10,5,-2],"to":[12,9,-1],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"0ffff8f3-55f3-ba96-fd1e-f1364423e084"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,5,-2],"to":[9,9,-1],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"491606c6-699f-841f-a8ab-e8cdec547c68"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[4,5,-2],"to":[6,9,-1],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"b4218883-bb0c-c89b-1cc8-a056d52c536e"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[4,5,-13],"to":[6,9,-12],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"85b2bed3-39f9-1e1c-ecd2-d688e58e2901"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,5,-13],"to":[9,9,-12],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"025ec1fd-f7bc-2d27-0393-50f206244268"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[10,5,-13],"to":[12,9,-12],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,8,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"62541bca-746b-c4c1-b4fa-f80ae51de5a7"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-1,4,5],"to":[1,8,6],"autouv":0,"color":0,"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"8c299ddd-aee9-17a1-3a67-2b45fec41dbd"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[2,4,5],"to":[4,8,6],"autouv":0,"color":0,"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"c3e8c8d9-92d0-b027-aaff-323d36237f18"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-4,4,5],"to":[-2,8,6],"autouv":0,"color":0,"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"74c2d8e5-4f69-f77d-814a-b71479a7d8a3"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[10,4,-2],"to":[12,8,-1],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"bea44a0b-36e2-2669-cd89-28e0afd4c448"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,4,-2],"to":[9,8,-1],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"949c17f4-860c-7c24-189a-fa0e74f3666e"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[4,4,-2],"to":[6,8,-1],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"06536cdb-7e75-261b-c8d5-a32b7a5a0e76"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[10,4,-13],"to":[12,8,-12],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"0e52be90-4685-d6f1-6b91-c3eb5f8593ca"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[7,4,-13],"to":[9,8,-12],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"c343e272-4edc-25ec-e874-f562d4f6f0ec"},{"name":"cube","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[4,4,-13],"to":[6,8,-12],"autouv":0,"color":0,"rotation":[0,-90,0],"origin":[0,7,-7],"faces":{"north":{"uv":[1,1,3,5],"texture":0},"east":{"uv":[0,1,1,5],"texture":0},"south":{"uv":[4,1,6,5],"texture":0},"west":{"uv":[3,1,4,5],"texture":0},"up":{"uv":[3,1,1,0],"texture":0},"down":{"uv":[5,0,3,1],"texture":0}},"type":"cube","uuid":"1ee91a5f-63e6-af9d-582c-21b579f93773"},{"name":"tongue","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-3,9,1],"to":[3,10,9],"autouv":0,"color":0,"rotation":[-30.000000000000068,0,0],"origin":[0,0,0],"uv_offset":[11,34],"faces":{"north":{"uv":[19,42,25,43],"texture":0},"east":{"uv":[11,42,19,43],"texture":0},"south":{"uv":[33,42,39,43],"texture":0},"west":{"uv":[25,42,33,43],"texture":0},"up":{"uv":[25,42,19,34],"texture":0},"down":{"uv":[31,34,25,42],"texture":0}},"type":"cube","uuid":"5370d06e-ecbb-fb06-26bb-8225234d4589"},{"name":"left_leg","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[1,-7,-2],"to":[6,0,4],"autouv":0,"color":5,"mirror_uv":true,"origin":[3.5,-1.5,1],"uv_offset":[7,30],"faces":{"north":{"uv":[18,36,13,43],"texture":0},"east":{"uv":[24,36,18,43],"texture":0},"south":{"uv":[29,36,24,43],"texture":0},"west":{"uv":[13,36,7,43],"texture":0},"up":{"uv":[13,36,18,30],"texture":0},"down":{"uv":[18,30,23,36],"texture":0}},"type":"cube","uuid":"8c49d0c6-dadb-9406-8104-787cfd570ce0"},{"name":"right_leg","box_uv":true,"rescale":false,"locked":false,"render_order":"default","allow_mirror_modeling":true,"from":[-6,-7,-2],"to":[-1,0,4],"autouv":0,"color":5,"origin":[-3.5,-1.5,1],"uv_offset":[7,30],"faces":{"north":{"uv":[13,36,18,43],"texture":0},"east":{"uv":[7,36,13,43],"texture":0},"south":{"uv":[24,36,29,43],"texture":0},"west":{"uv":[18,36,24,43],"texture":0},"up":{"uv":[18,36,13,30],"texture":0},"down":{"uv":[23,30,18,36],"texture":0}},"type":"cube","uuid":"5ffba0e0-b2f3-b6a4-f42b-ed2036386dd2"}],"outliner":[{"name":"lid","origin":[0,7,-7],"rotation":[47.5,0,-180],"color":0,"uuid":"704f8283-e7f5-5ff9-eb85-66ed5a7e1199","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["5370d06e-ecbb-fb06-26bb-8225234d4589",{"name":"upper_teeth","origin":[0,0,0],"color":0,"uuid":"6ece85ba-c460-6c7c-1bbd-2f4390cf4c44","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["8c299ddd-aee9-17a1-3a67-2b45fec41dbd","c3e8c8d9-92d0-b027-aaff-323d36237f18","74c2d8e5-4f69-f77d-814a-b71479a7d8a3","bea44a0b-36e2-2669-cd89-28e0afd4c448","949c17f4-860c-7c24-189a-fa0e74f3666e","06536cdb-7e75-261b-c8d5-a32b7a5a0e76","0e52be90-4685-d6f1-6b91-c3eb5f8593ca","c343e272-4edc-25ec-e874-f562d4f6f0ec","1ee91a5f-63e6-af9d-582c-21b579f93773"]}]},{"name":"lower_teeth","origin":[0,8,-7],"color":0,"uuid":"95035b43-0bfe-81c7-51ac-bb824489552b","export":true,"mirror_uv":false,"isOpen":false,"locked":false,"visibility":true,"autouv":0,"children":["9d61ad16-6c82-9a20-5701-12ba5093bf3c","d25b1a82-7e3e-c44f-623d-6ea50d66066f","afb53261-4022-e68b-7664-d6a854d3239f","0ffff8f3-55f3-ba96-fd1e-f1364423e084","491606c6-699f-841f-a8ab-e8cdec547c68","b4218883-bb0c-c89b-1cc8-a056d52c536e","62541bca-746b-c4c1-b4fa-f80ae51de5a7","025ec1fd-f7bc-2d27-0393-50f206244268","85b2bed3-39f9-1e1c-ecd2-d688e58e2901"]},{"name":"right_leg","origin":[-3.5,-1.5,1],"color":0,"uuid":"b5b5d56e-c3d8-dd8c-2cb3-37962d9547b3","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["5ffba0e0-b2f3-b6a4-f42b-ed2036386dd2"]},{"name":"left_leg","origin":[-3.5,-1.5,1],"color":0,"uuid":"7589ea26-bfc2-f4e1-bb5b-461462d548b6","export":true,"mirror_uv":false,"isOpen":true,"locked":false,"visibility":true,"autouv":0,"children":["8c49d0c6-dadb-9406-8104-787cfd570ce0"]}],"textures":[{"path":"/home/sollace/Documents/GitRepos/minecraft_mods/normal.png","name":"normal.png","folder":"","namespace":"","id":"0","width":64,"height":64,"uv_width":64,"uv_height":64,"particle":false,"layers_enabled":false,"sync_to_project":"","render_mode":"default","render_sides":"auto","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"internal":true,"saved":true,"uuid":"b2322db6-1c29-09ad-3b26-7e50165557cd","relative_path":"../../../../normal.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAAAXNSR0IArs4c6QAABqNJREFUeF7tWltsVEUY/s45u91Lu+22lKK0pPHS2qBpA+USQyFEE4IRYnww0tRojJcYbxgfeDPGmPBojNEXjRhBom8EwZCgRgMtKLaUbYQUURCllQItrS273cvZMf9MZ/fslu7ZXTlwTtl5ObOz55sz8883/z/zzSgA0NfXxwYHB9HS0gJ6dnV1KVSeKy1tWsIq/F6oAHSI1zUwnlfAUlAGBXoS0FQgyRgikWkUg+sbOGPaJrM2X+9/Zdu2bby19fX1GBoa4u9QfuvWrTk/uHrZfWzzMi/i+iTH1AUq+PPS5FRGvtrjhbvMhathBfv6p/k7xeB+7j9trQHa2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ecV2HS1WhKMKA9Fsmt6ZhdHwSTsCZGmBWz/MsmDeSWJ79nfXavJHE/o8BipG26HuEe+VDIaWZpY9eFZso2y2FpSRWqLRFHSZJ7M3PciyhDVZ571khpdlyO1yMtCUlsTc+PmU2+Pz/918UUprtlsJyO1yotEWdIknsnc/T2+hclnj7GbGNtp0BpCAi5e18pS0piRXiA2wtiRUqbdFokyT2+qdZUtocNPjgOSGl2dIHkDcvVNqaN1FA+oBCpa155QOKkbbIAITL1wlSFLC1JFaotCUlsXzXAbb2AcVIWyVJzG6S2F1LFjGf15O6xJB91KuCITlz5CvyIkWmY3AC7tSZ3Foil8Q6O4Ko9jPEYwmu4M512UGGaimJFYKjOvcOuLiUdjNxpnoAGeDlDVU8nhtPZ2Vn5WGFPLykclJ2qCNOwJkagISN5zt8qPXrmOuSQloJEpcYdhwPYmhkDIXgSKPbFaq46bhvu01UYdIEX3oowC8syJTNhOyj65295VzbcwLOlAFkgCfXuPHA4nIujNJZvUzysFIeXsryrwdq8M/IGJyAMz0XIAO8trGaX1rKvpxAHaZTW+NxtfQBxAAn4EwZQD5gyyofKtKSOlxqejokkoaLPjMUOHDGx+dyITiqc99p4QNuFG7kahiXZi4k1FR6UV+TvnUhv2fqAygKbFpRnaJ9MhbFVHoWoNKbPm5KJJJwuVT0X1B5FLjVuBPnJ1LtbqgNoK7ax38b22nKgNv+bDAvYW4ev2TJkbOT7FUygJNGy4q2lhhghVWdVGeJAU4aLSvaWmKAFVZ1Up0lBjhptKxoa4kBVljVSXWWGOCk0bKirSUGWGFVJ9VZYoCTRsuKtt72DPgPhw24jE6OT1AAAAAASUVORK5CYII="}],"fabricOptions":{"header":"package com.example.mod;","entity":"Entity","render":"","members":""}} \ No newline at end of file diff --git a/assets/models/mimic.java b/assets/models/mimic.java index fa5f7932..6597d348 100644 --- a/assets/models/mimic.java +++ b/assets/models/mimic.java @@ -1,6 +1,9 @@ // Made with Blockbench 4.9.4 // Exported for Minecraft version 1.17+ for Yarn // Paste this class into your mod and generate all required imports + +package com.example.mod; + public class mimic extends EntityModel { private final ModelPart lid; private final ModelPart tongue_r1; @@ -8,9 +11,13 @@ public class mimic extends EntityModel { private final ModelPart cube_r1; private final ModelPart lower_teeth; private final ModelPart cube_r2; + private final ModelPart right_leg; + private final ModelPart left_leg; public mimic(ModelPart root) { this.lid = root.getChild("lid"); this.lower_teeth = root.getChild("lower_teeth"); + this.right_leg = root.getChild("right_leg"); + this.left_leg = root.getChild("left_leg"); } public static TexturedModelData getTexturedModelData() { ModelData modelData = new ModelData(); @@ -40,6 +47,10 @@ public class mimic extends EntityModel { .uv(0, 0).cuboid(-6.0F, -1.0F, 5.0F, 2.0F, 4.0F, 1.0F, new Dilation(0.0F)) .uv(0, 0).cuboid(-9.0F, -1.0F, 5.0F, 2.0F, 4.0F, 1.0F, new Dilation(0.0F)) .uv(0, 0).cuboid(-12.0F, -1.0F, 5.0F, 2.0F, 4.0F, 1.0F, new Dilation(0.0F)), ModelTransform.of(0.0F, 0.0F, 0.0F, 0.0F, 1.5708F, 0.0F)); + + ModelPartData right_leg = modelPartData.addChild("right_leg", ModelPartBuilder.create().uv(7, 30).cuboid(-2.5F, -1.5F, -3.0F, 5.0F, 7.0F, 6.0F, new Dilation(0.0F)), ModelTransform.pivot(3.5F, 25.5F, 1.0F)); + + ModelPartData left_leg = modelPartData.addChild("left_leg", ModelPartBuilder.create().uv(7, 30).mirrored().cuboid(-9.5F, -1.5F, -3.0F, 5.0F, 7.0F, 6.0F, new Dilation(0.0F)).mirrored(false), ModelTransform.pivot(3.5F, 25.5F, 1.0F)); return TexturedModelData.of(modelData, 64, 64); } @Override @@ -49,5 +60,7 @@ public class mimic extends EntityModel { public void render(MatrixStack matrices, VertexConsumer vertexConsumer, int light, int overlay, float red, float green, float blue, float alpha) { lid.render(matrices, vertexConsumer, light, overlay, red, green, blue, alpha); lower_teeth.render(matrices, vertexConsumer, light, overlay, red, green, blue, alpha); + right_leg.render(matrices, vertexConsumer, light, overlay, red, green, blue, alpha); + left_leg.render(matrices, vertexConsumer, light, overlay, red, green, blue, alpha); } } \ No newline at end of file diff --git a/src/main/java/com/minelittlepony/unicopia/client/render/entity/MimicEntityRenderer.java b/src/main/java/com/minelittlepony/unicopia/client/render/entity/MimicEntityRenderer.java index e2c91bc3..0fc1d1ab 100644 --- a/src/main/java/com/minelittlepony/unicopia/client/render/entity/MimicEntityRenderer.java +++ b/src/main/java/com/minelittlepony/unicopia/client/render/entity/MimicEntityRenderer.java @@ -34,6 +34,8 @@ public class MimicEntityRenderer extends MobEntityRenderer { private ModelPart part; private ModelPart lid; + private ModelPart leftLeg; + private ModelPart rightLeg; public MimicModel(ModelPart part) { this.part = part; this.lid = part.getChild("lid"); + this.leftLeg = part.getChild("left_leg"); + this.rightLeg = part.getChild("right_leg"); } public static TexturedModelData getTexturedModelData() { ModelData data = new ModelData(); ModelPartData root = data.getRoot(); - ModelPartData lid = root.addChild("lid", ModelPartBuilder.create(), ModelTransform.of(0, 17, -7, -0.829F, 0, -3.1416F)); + ModelPartData lid = root.addChild("lid", ModelPartBuilder.create(), ModelTransform.of(0, 15, -7, 0, 0, -3.1416F)); lid.addChild("tongue", ModelPartBuilder.create() .uv(11, 34).cuboid(-3, -11, 1, 6, 1, 8, Dilation.NONE), ModelTransform.of(0, 6, 9, 0.8F, 0, 0)); lid.addChild("upper_teeth", ModelPartBuilder.create() - .uv(0, 0).cuboid(-1, -8, 5, 2, 4, 1, Dilation.NONE) - .uv(0, 0).cuboid(-4, -8, 5, 2, 4, 1, Dilation.NONE) - .uv(0, 0).cuboid(2, -8, 5, 2, 4, 1, Dilation.NONE), ModelTransform.pivot(0, 6, 9)) + //.uv(0, 0).cuboid(-7, 0, 0, 14, 5, 14, Dilation.NONE) + .uv(0, 0).cuboid(-1, -2, 12, 2, 4, 1, Dilation.NONE) + .uv(0, 0).cuboid(-4, -2, 12, 2, 4, 1, Dilation.NONE) + .uv(0, 0).cuboid(2, -2, 12, 2, 4, 1, Dilation.NONE), ModelTransform.NONE) .addChild("cube_r1", ModelPartBuilder.create() - .uv(0, 0).cuboid(-6, -1, -6, 2, 4, 1, Dilation.NONE) - .uv(0, 0).cuboid(-9, -1, -6, 2, 4, 1, Dilation.NONE) - .uv(0, 0).cuboid(-12, -1, -6, 2, 4, 1, Dilation.NONE) - .uv(0, 0).cuboid(-6, -1, 5, 2, 4, 1, Dilation.NONE) - .uv(0, 0).cuboid(-9, -1, 5, 2, 4, 1, Dilation.NONE) - .uv(0, 0).cuboid(-12, -1, 5, 2, 4, 1, Dilation.NONE), ModelTransform.of(0, -7, -7, 0, 1.5708F, 0)); + .uv(0, 0).cuboid(-5, -2, -6, 2, 4, 1, Dilation.NONE) + .uv(0, 0).cuboid(-8, -2, -6, 2, 4, 1, Dilation.NONE) + .uv(0, 0).cuboid(-11, -2, -6, 2, 4, 1, Dilation.NONE) + .uv(0, 0).cuboid(-5, -2, 5, 2, 4, 1, Dilation.NONE) + .uv(0, 0).cuboid(-8, -2, 5, 2, 4, 1, Dilation.NONE) + .uv(0, 0).cuboid(-11, -2, 5, 2, 4, 1, Dilation.NONE), ModelTransform.of(0, 0, 0, 0, 1.5708F, 0)); root.addChild("lower_teeth", ModelPartBuilder.create() .uv(0, 0).cuboid(-1, -1, 12, 2, 4, 1, Dilation.NONE) .uv(0, 0).cuboid(-4, -1, 12, 2, 4, 1, Dilation.NONE) @@ -110,14 +118,15 @@ public class MimicEntityRenderer extends MobEntityRenderer 0.2F; + leftLeg.visible = revealPercentage > 0.2F; } @Override public void render(MatrixStack matrices, VertexConsumer vertices, int light, int overlay, float red, float green, float blue, float alpha) { - if (lid.pitch != 0) { - part.render(matrices, vertices, light, overlay); - } + part.render(matrices, vertices, light, overlay); } } } \ No newline at end of file diff --git a/src/main/java/com/minelittlepony/unicopia/entity/mob/MimicEntity.java b/src/main/java/com/minelittlepony/unicopia/entity/mob/MimicEntity.java index 1fe4eb1a..8e0140b4 100644 --- a/src/main/java/com/minelittlepony/unicopia/entity/mob/MimicEntity.java +++ b/src/main/java/com/minelittlepony/unicopia/entity/mob/MimicEntity.java @@ -68,7 +68,7 @@ public class MimicEntity extends PathAwareEntity { } float spawnChance = (difficulty / 3F) * 0.25F; float roll = world.random.nextFloat(); - System.out.println("Roll mimic: " + roll + " < " + spawnChance); + if (roll >= spawnChance) { return TypedActionResult.pass(null); } @@ -112,6 +112,11 @@ public class MimicEntity extends PathAwareEntity { return isAlive(); } + @Override + public boolean canBreatheInWater() { + return true; + } + @Nullable @Override public ItemStack getPickBlockStack() { @@ -121,7 +126,7 @@ public class MimicEntity extends PathAwareEntity { @Override protected void initGoals() { - goalSelector.add(2, new AttackGoal(this, 1.0, false)); + goalSelector.add(2, new AttackGoal(this, 0.6F, false)); } public void setChest(ChestBlock chest) { @@ -168,6 +173,10 @@ public class MimicEntity extends PathAwareEntity { setMouthOpen(true); } + public float getPeekAmount() { + return MathHelper.clamp((float)getVelocity().lengthSquared() * 50F, 0, 1); + } + @Override public void tick() { super.tick(); @@ -183,6 +192,9 @@ public class MimicEntity extends PathAwareEntity { setBodyYaw(MathHelper.floor(getBodyYaw() / 90) * 90); setYaw(MathHelper.floor(getYaw() / 90) * 90); setHeadYaw(MathHelper.floor(getHeadYaw() / 90) * 90); + if (getHealth() < getMaxHealth() && getWorld().random.nextInt(20) == 0) { + heal(1); + } } }